diff options
-rw-r--r-- | roles/configure_sysctl/tasks/main.yml | 7 | ||||
-rw-r--r-- | roles/install_dhcp/tasks/main.yml | 7 |
2 files changed, 8 insertions, 6 deletions
diff --git a/roles/configure_sysctl/tasks/main.yml b/roles/configure_sysctl/tasks/main.yml index fa73a9a..102412a 100644 --- a/roles/configure_sysctl/tasks/main.yml +++ b/roles/configure_sysctl/tasks/main.yml @@ -1,8 +1,9 @@ --- - name: touch sysctl.conf - file: - path: /etc/sysctl.conf - state: touch + copy: + content: '' + dest: /etc/sysctl.conf + force: no - name: copy ff.conf copy: diff --git a/roles/install_dhcp/tasks/main.yml b/roles/install_dhcp/tasks/main.yml index 1bca76f..2773e30 100644 --- a/roles/install_dhcp/tasks/main.yml +++ b/roles/install_dhcp/tasks/main.yml @@ -5,9 +5,10 @@ state: present - name: create dhcp file for static ips - file: - path: /etc/dhcpd.hosts.conf - state: touch + copy: + content: '' + dest: /etc/dhcpd.hosts.conf + force: no - name: copy fastd-services-api.php copy: |