mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2025-01-24 04:49:26 +00:00
upt playbook
This commit is contained in:
parent
3d538d5e03
commit
932b71fa7f
@ -90,13 +90,13 @@
|
|||||||
Content-Type: "application/json"
|
Content-Type: "application/json"
|
||||||
X-API-Key: "ptr_DfS2M6Fj2P3fVvYpkhE0KJh2UGCzY47ePaFaLqadsjg="
|
X-API-Key: "ptr_DfS2M6Fj2P3fVvYpkhE0KJh2UGCzY47ePaFaLqadsjg="
|
||||||
timeout: 60
|
timeout: 60
|
||||||
|
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
when: inventory_hostname in groups['nas']
|
when: inventory_hostname in groups['nas']
|
||||||
|
|
||||||
|
|
||||||
- debug:
|
- debug:
|
||||||
msg: "{{ ruleset.stdout }}"
|
msg: "{{ ruleset.stdout }}"
|
||||||
|
when: inventory_hostname in groups['router']
|
||||||
|
|
||||||
- name: Set new ruleset
|
- name: Set new ruleset
|
||||||
command: nvram set vts_rulelist="{{ ruleset.stdout | replace('192.168.77.246', '192.168.77.106') }}"
|
command: nvram set vts_rulelist="{{ ruleset.stdout | replace('192.168.77.246', '192.168.77.106') }}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user