mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2025-01-23 20:39:26 +00:00
upt playbook
This commit is contained in:
parent
932b71fa7f
commit
f5eb2769fa
@ -11,7 +11,6 @@
|
||||
Content-Type: "application/json"
|
||||
X-API-Key: "ptr_DfS2M6Fj2P3fVvYpkhE0KJh2UGCzY47ePaFaLqadsjg="
|
||||
timeout: 60
|
||||
register: result
|
||||
ignore_errors: yes
|
||||
when: inventory_hostname in groups['nas']
|
||||
|
||||
@ -25,7 +24,6 @@
|
||||
Content-Type: "application/json"
|
||||
X-API-Key: "ptr_DfS2M6Fj2P3fVvYpkhE0KJh2UGCzY47ePaFaLqadsjg="
|
||||
timeout: 60
|
||||
register: result
|
||||
ignore_errors: yes
|
||||
when: inventory_hostname in groups['nas']
|
||||
|
||||
@ -35,6 +33,9 @@
|
||||
when: inventory_hostname in groups['router']
|
||||
register: ruleset
|
||||
|
||||
- debug:
|
||||
msg: "{{ ruleset.stdout }}"
|
||||
|
||||
- name: Set new ruleset
|
||||
command: nvram set vts_rulelist="{{ ruleset.stdout | replace('192.168.77.106', '192.168.77.246') }}"
|
||||
when: inventory_hostname in groups['router']
|
||||
@ -96,8 +97,7 @@
|
||||
|
||||
- debug:
|
||||
msg: "{{ ruleset.stdout }}"
|
||||
when: inventory_hostname in groups['router']
|
||||
|
||||
|
||||
- name: Set new ruleset
|
||||
command: nvram set vts_rulelist="{{ ruleset.stdout | replace('192.168.77.246', '192.168.77.106') }}"
|
||||
when: inventory_hostname in groups['router']
|
||||
|
Loading…
x
Reference in New Issue
Block a user