Role service-bird-icvpn: use a task and not a handler to set file attrs
This commit is contained in:
parent
2e0e474ba7
commit
5e38e4f6fb
2 changed files with 24 additions and 16 deletions
|
@ -8,17 +8,3 @@
|
||||||
systemd:
|
systemd:
|
||||||
name: bird6
|
name: bird6
|
||||||
state: reloaded
|
state: reloaded
|
||||||
|
|
||||||
- name: set file attrs 4
|
|
||||||
file:
|
|
||||||
path: /etc/bird/icvpn_ipv4_peers.conf
|
|
||||||
mode: 0640
|
|
||||||
owner: bird
|
|
||||||
group: bird
|
|
||||||
|
|
||||||
- name: set file attrs 6
|
|
||||||
file:
|
|
||||||
path: /etc/bird/icvpn_ipv6_peers.conf
|
|
||||||
mode: 0640
|
|
||||||
owner: bird
|
|
||||||
group: bird
|
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
creates: /etc/bird/icvpn_ipv{{ item }}_peers.conf
|
creates: /etc/bird/icvpn_ipv{{ item }}_peers.conf
|
||||||
notify:
|
notify:
|
||||||
- reload bird{{ item }}
|
- reload bird{{ item }}
|
||||||
- set file attrs {{ item }}
|
|
||||||
with_items:
|
with_items:
|
||||||
- 4
|
- 4
|
||||||
- 6
|
- 6
|
||||||
|
@ -18,7 +17,6 @@
|
||||||
creates: /etc/bird/icvpn_ipv{{ item.key }}_roa.conf
|
creates: /etc/bird/icvpn_ipv{{ item.key }}_roa.conf
|
||||||
notify:
|
notify:
|
||||||
- reload bird{{ item.key }}
|
- reload bird{{ item.key }}
|
||||||
- set file attrs {{ item.key }}
|
|
||||||
with_dict:
|
with_dict:
|
||||||
4:
|
4:
|
||||||
max_prefix: 20
|
max_prefix: 20
|
||||||
|
@ -36,3 +34,27 @@
|
||||||
with_items:
|
with_items:
|
||||||
- 4
|
- 4
|
||||||
- 6
|
- 6
|
||||||
|
|
||||||
|
- name: set file attributes for ipv4 roa and peer config
|
||||||
|
file:
|
||||||
|
path: "{{ item }}"
|
||||||
|
mode: 0640
|
||||||
|
owner: bird
|
||||||
|
group: bird
|
||||||
|
notify:
|
||||||
|
- reload bird4
|
||||||
|
with_items:
|
||||||
|
- /etc/bird/icvpn_ipv4_peers.conf
|
||||||
|
- /etc/bird/icvpn_ipv4_roa.conf
|
||||||
|
|
||||||
|
- name: set file attributes for ipv6 roa and peer config
|
||||||
|
file:
|
||||||
|
path: "{{ item }}"
|
||||||
|
mode: 0640
|
||||||
|
owner: bird
|
||||||
|
group: bird
|
||||||
|
notify:
|
||||||
|
- reload bird6
|
||||||
|
with_items:
|
||||||
|
- /etc/bird/icvpn_ipv6_peers.conf
|
||||||
|
- /etc/bird/icvpn_ipv6_roa.conf
|
||||||
|
|
Loading…
Reference in a new issue