general method for adding configuration files

This commit is contained in:
f 2022-06-19 02:52:24 -03:00
parent ac9f6ba592
commit e3a5854361

View file

@ -50,20 +50,16 @@
service: "swclock" service: "swclock"
- runlevel: "default" - runlevel: "default"
service: "ntpd" service: "ntpd"
- name: "Install firewall rules." - name: "Install configuration files."
template: template:
src: "templates/etc/iptables/{{ item }}.j2" src: "templates/{{ item }}"
dest: "/mnt/etc/iptables/{{ item }}" dest: "{{ item }}"
mode: "640"
loop: loop:
- rules-save - /etc/iptables/rules6-save
- rules6-save - /etc/iptables/rules-save
- name: "And blocklists." - /etc/ipset.d/blocklist4
template: - /etc/ipset.d/blocklist6
src: "templates/etc/ipset.d/{{ item }}.j2"
dest: "/mnt/etc/ipset.d/{{ item }}"
loop:
- blocklist4
- blocklist6
- name: "Create NTP directories." - name: "Create NTP directories."
file: file:
state: "directory" state: "directory"