diff --git a/playbooks/97_test.yml b/playbooks/97_test.yml index f3df92d..54c486e 100644 --- a/playbooks/97_test.yml +++ b/playbooks/97_test.yml @@ -12,4 +12,13 @@ register: result - debug: - msg: "{{ result.stdout | replace('192.168.77.106', '192.168.77.246') }}" \ No newline at end of file + 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'] + \ No newline at end of file