upt playbook

This commit is contained in:
jaydee 2023-08-21 10:38:07 +02:00
parent f5eb2769fa
commit 55c44a199a

View File

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