upt playbook

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

View File

@ -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') }}"