diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-08-20 23:02:06 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-08-20 23:02:08 +0200 |
commit | c054d22c4818d916ac6dd9c8d7a7a2c614408e17 (patch) | |
tree | c0239045b1587cd950fd1d777f0c84fe5c23aa92 /roles/firewall | |
parent | add ansible_managed comment to templates (diff) | |
download | infra-ansible-c054d22c4818d916ac6dd9c8d7a7a2c614408e17.tar.gz infra-ansible-c054d22c4818d916ac6dd9c8d7a7a2c614408e17.zip |
append .j2 extension to templates
I saw a good point somewhere that it should help with syntax
highlighting.
Diffstat (limited to '')
-rw-r--r-- | roles/firewall/tasks/main.yml | 4 | ||||
-rw-r--r-- | roles/firewall/templates/rules.v4.j2 (renamed from roles/firewall/templates/rules.v4) | 0 | ||||
-rw-r--r-- | roles/firewall/templates/rules.v6.j2 (renamed from roles/firewall/templates/rules.v6) | 0 |
3 files changed, 2 insertions, 2 deletions
diff --git a/roles/firewall/tasks/main.yml b/roles/firewall/tasks/main.yml index 95d02d3..82584e2 100644 --- a/roles/firewall/tasks/main.yml +++ b/roles/firewall/tasks/main.yml @@ -8,8 +8,8 @@ - name: Configure rule files ansible.builtin.include_tasks: file.yml loop: - - {src: rules.v4, dest: /etc/iptables/rules.v4, tool: iptables} - - {src: rules.v6, dest: /etc/iptables/rules.v6, tool: ip6tables} + - {src: rules.v4.j2, dest: /etc/iptables/rules.v4, tool: iptables} + - {src: rules.v6.j2, dest: /etc/iptables/rules.v6, tool: ip6tables} - name: Reboot if necessary ansible.builtin.meta: flush_handlers diff --git a/roles/firewall/templates/rules.v4 b/roles/firewall/templates/rules.v4.j2 index 1bfeb94..1bfeb94 100644 --- a/roles/firewall/templates/rules.v4 +++ b/roles/firewall/templates/rules.v4.j2 diff --git a/roles/firewall/templates/rules.v6 b/roles/firewall/templates/rules.v6.j2 index 2e94e25..2e94e25 100644 --- a/roles/firewall/templates/rules.v6 +++ b/roles/firewall/templates/rules.v6.j2 |