Update 'common.yml'
This commit is contained in:
parent
49da73c8fa
commit
36eb8494fd
1 changed files with 14 additions and 0 deletions
14
common.yml
14
common.yml
|
@ -78,6 +78,20 @@
|
|||
key: "{{ lookup('file', 'keys/'+ item + '.key.pub') }}"
|
||||
with_items: "{{ users }}"
|
||||
|
||||
- name: Fix Debian10's shitty iptables support
|
||||
file:
|
||||
src: '{{ item.src }}'
|
||||
dest: '{{ item.dest }}'
|
||||
state: link
|
||||
loop:
|
||||
- { src: /usr/sbin/iptables-save, dest: /bin/iptables-save }
|
||||
- { src: /usr/sbin/iptables-restore, dest: /bin/iptables-restore }
|
||||
- { src: /usr/sbin/iptables-apply, dest: /bin/iptables-apply }
|
||||
- { src: /usr/sbin/ip6tables-save, dest: /bin/ip6tables-save }
|
||||
- { src: /usr/sbin/ip6tables-restore, dest: /bin/ip6tables-restore }
|
||||
- { src: /usr/sbin/ip6tables-apply, dest: /bin/ip6tables-apply }
|
||||
when: ansible_distribution == 'Debian' and ansible_distribution_major_version == '10'
|
||||
|
||||
- name: create rules.v4
|
||||
blockinfile:
|
||||
create: yes
|
||||
|
|
Loading…
Reference in a new issue