diff --git a/roles/server-basic/tasks/main.yml b/roles/server-basic/tasks/main.yml index 82a3218..4755555 100644 --- a/roles/server-basic/tasks/main.yml +++ b/roles/server-basic/tasks/main.yml @@ -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: diff --git a/roles/server-basic/templates/modprobe_dummy.conf.j2 b/roles/server-basic/templates/modprobe_dummy.conf.j2 new file mode 100644 index 0000000..3ed8d57 --- /dev/null +++ b/roles/server-basic/templates/modprobe_dummy.conf.j2 @@ -0,0 +1,4 @@ +# +# {{ ansible_managed }} +# +options dummy numdummies=0 diff --git a/roles/server-basic/templates/dummy.module.conf.j2 b/roles/server-basic/templates/modules_load_dummy.conf.j2 similarity index 100% rename from roles/server-basic/templates/dummy.module.conf.j2 rename to roles/server-basic/templates/modules_load_dummy.conf.j2