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
f5eb2769fa
commit
55c44a199a
@ -33,8 +33,6 @@
|
|||||||
when: inventory_hostname in groups['router']
|
when: inventory_hostname in groups['router']
|
||||||
register: ruleset
|
register: ruleset
|
||||||
|
|
||||||
- debug:
|
|
||||||
msg: "{{ ruleset.stdout }}"
|
|
||||||
|
|
||||||
- name: Set new ruleset
|
- name: Set new ruleset
|
||||||
command: nvram set vts_rulelist="{{ ruleset.stdout | replace('192.168.77.106', '192.168.77.246') }}"
|
command: nvram set vts_rulelist="{{ ruleset.stdout | replace('192.168.77.106', '192.168.77.246') }}"
|
||||||
@ -95,8 +93,8 @@
|
|||||||
when: inventory_hostname in groups['nas']
|
when: inventory_hostname in groups['nas']
|
||||||
|
|
||||||
|
|
||||||
- debug:
|
#- debug:
|
||||||
msg: "{{ ruleset.stdout }}"
|
# msg: "{{ ruleset.stdout }}"
|
||||||
|
|
||||||
- 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