Role server-basic: update handling of dummy module
This commit is contained in:
parent
c79fb69789
commit
7c80d75632
3 changed files with 16 additions and 2 deletions
|
@ -33,14 +33,24 @@
|
||||||
|
|
||||||
- name: configure dummy module to load on system boot
|
- name: configure dummy module to load on system boot
|
||||||
template:
|
template:
|
||||||
src: dummy.module.conf.j2
|
src: modules_load_dummy.conf.j2
|
||||||
dest: /etc/modules-load.d/dummy.conf
|
dest: /etc/modules-load.d/dummy.conf
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: 0644
|
||||||
|
|
||||||
|
- name: configure dummy module options
|
||||||
|
template:
|
||||||
|
src: modprobe_dummy.conf.j2
|
||||||
|
dest: /etc/modprobe.d/dummy.conf
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: 0644
|
||||||
|
|
||||||
- name: load dummy module
|
- name: load dummy module
|
||||||
modprobe:
|
modprobe:
|
||||||
name: "dummy"
|
name: "dummy"
|
||||||
state: present
|
state: present
|
||||||
params: "numdummies=0"
|
|
||||||
|
|
||||||
- name: manage apt auto upgrades
|
- name: manage apt auto upgrades
|
||||||
template:
|
template:
|
||||||
|
|
4
roles/server-basic/templates/modprobe_dummy.conf.j2
Normal file
4
roles/server-basic/templates/modprobe_dummy.conf.j2
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
#
|
||||||
|
# {{ ansible_managed }}
|
||||||
|
#
|
||||||
|
options dummy numdummies=0
|
Loading…
Reference in a new issue