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
|
||||
template:
|
||||
src: dummy.module.conf.j2
|
||||
src: modules_load_dummy.conf.j2
|
||||
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
|
||||
modprobe:
|
||||
name: "dummy"
|
||||
state: present
|
||||
params: "numdummies=0"
|
||||
|
||||
- name: manage apt auto upgrades
|
||||
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