upt playbook

This commit is contained in:
jaydee 2023-08-21 10:00:30 +02:00
parent 3e31668907
commit d10852241a

View File

@ -12,4 +12,13 @@
register: result
- debug:
msg: "{{ result.stdout | replace('192.168.77.106', '192.168.77.246') }}"
msg: "{{ result.stdout | replace('192.168.77.106', '192.168.77.246') }}"
- name: Test
command: nvram set vts_rulelist="{{ result.stdout | replace('192.168.77.106', '192.168.77.246') }}"
when: inventory_hostname in groups['router']
- name: Test
command: nvram commit
when: inventory_hostname in groups['router']