install configuration files correctly

This commit is contained in:
f 2022-07-02 19:27:26 -03:00
parent ee92873499
commit 0d1d684aab
2 changed files with 5 additions and 5 deletions

View file

@ -52,8 +52,8 @@
service: "ntpd"
- name: "Install configuration files."
template:
src: "templates/{{ item }}"
dest: "{{ item }}"
src: "templates{{ item }}.j2"
dest: "/mnt{{ item }}"
mode: "640"
loop:
- /etc/conf.d/iptables
@ -68,8 +68,8 @@
- /etc/sysctl.d/congestion.conf
- name: "And services."
template:
src: "templates/{{ item }}.j2"
dest: "{{ item }}"
src: "templates{{ item }}.j2"
dest: "/mnt{{ item }}"
mode: "750"
loop:
- /etc/init.d/ntpd
@ -77,7 +77,7 @@
- name: "Create NTP directories."
file:
state: "directory"
path: "{{ item }}"
path: "/mnt{{ item }}"
loop:
- "/var/NTP"
- "/var/lib/ntp"