update..
This commit is contained in:
parent
e580f3623a
commit
151a3b467b
@ -906,6 +906,9 @@ tor_hidden_service_port:
|
|||||||
munin_remote_ipv4: 135.181.136.84
|
munin_remote_ipv4: 135.181.136.84
|
||||||
munin_remote_ipv6: 2a01:4f9:3a:1051::84
|
munin_remote_ipv6: 2a01:4f9:3a:1051::84
|
||||||
|
|
||||||
|
munin_remote_ipv4_old: 95.217.64.122
|
||||||
|
munin_remote_ipv6_old: 2a01:4f9:4a:2b57::122
|
||||||
|
|
||||||
|
|
||||||
# ---
|
# ---
|
||||||
# vars used by cron.yml
|
# vars used by cron.yml
|
||||||
|
@ -18,3 +18,10 @@
|
|||||||
when:
|
when:
|
||||||
- interfaces_ipv6_exists.stat.exists
|
- interfaces_ipv6_exists.stat.exists
|
||||||
- main_ipv6_exists.stat.exists
|
- main_ipv6_exists.stat.exists
|
||||||
|
|
||||||
|
- name: Restart munin-node
|
||||||
|
service:
|
||||||
|
name: munin-node
|
||||||
|
state: restarted
|
||||||
|
when:
|
||||||
|
- munin_node_exists.stat.exists
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
- name: (modify-munin-ip - main.yml)) Set fact_sshd_kexalgorithms (comma separated list)
|
- name: (modify-munin-ip - main.yml)) Set fact_sshd_kexalgorithms (comma separated list)
|
||||||
set_fact:
|
set_fact:
|
||||||
fact_munin_node_ipv4_old: "{{ munin_remote_ipv4 | replace('.', '\\.') }}"
|
fact_munin_node_ipv4_old: "{{ munin_remote_ipv4_old | replace('.', '\\\\.') }}"
|
||||||
when:
|
when:
|
||||||
- munin_remote_ipv4_old is defined and munin_remote_ipv4_old | length > 0
|
- munin_remote_ipv4_old is defined and munin_remote_ipv4_old | length > 0
|
||||||
|
|
||||||
@ -49,7 +49,7 @@
|
|||||||
- name: (modify-munin-ip) Check if file '/etc/munin/munin-node.conf' exists
|
- name: (modify-munin-ip) Check if file '/etc/munin/munin-node.conf' exists
|
||||||
stat:
|
stat:
|
||||||
path: /etc/munin/munin-node.conf
|
path: /etc/munin/munin-node.conf
|
||||||
register: munin_node__exists
|
register: munin_node_exists
|
||||||
|
|
||||||
|
|
||||||
- name: (modify-munin-ip) /etc/ipt-firewall/main_ipv4.conf - addjust line 'munin_remote_ip' (IPv4)
|
- name: (modify-munin-ip) /etc/ipt-firewall/main_ipv4.conf - addjust line 'munin_remote_ip' (IPv4)
|
||||||
@ -74,4 +74,26 @@
|
|||||||
- Restart IPv6 Firewall
|
- Restart IPv6 Firewall
|
||||||
|
|
||||||
|
|
||||||
|
- name: (modify-munin-ip) /etc/munin/munin-node.conf - addjust line 'allow ^' (IPv4)
|
||||||
|
lineinfile:
|
||||||
|
path: /etc/munin/munin-node.conf
|
||||||
|
regexp: '^allow \^{{ fact_munin_node_ipv4_old }}'
|
||||||
|
line: 'allow ^{{ fact_munin_node_ipv4 }}$'
|
||||||
|
when:
|
||||||
|
- munin_node_exists.stat.exists
|
||||||
|
notify:
|
||||||
|
- Restart munin-node
|
||||||
|
|
||||||
|
|
||||||
|
- name: (modify-munin-ip) /etc/munin/munin-node.conf - addjust line 'allow ^' (IPv4)
|
||||||
|
lineinfile:
|
||||||
|
path: /etc/munin/munin-node.conf
|
||||||
|
regexp: '^allow \^{{ munin_remote_ipv6_old }}'
|
||||||
|
line: 'allow ^{{ munin_remote_ipv6 }}$'
|
||||||
|
when:
|
||||||
|
- munin_node_exists.stat.exists
|
||||||
|
notify:
|
||||||
|
- Restart munin-node
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user