From d10852241ac8eb41a7468c95a0bcd0842eb6f6eb Mon Sep 17 00:00:00 2001 From: jaydee Date: Mon, 21 Aug 2023 10:00:30 +0200 Subject: [PATCH] upt playbook --- playbooks/97_test.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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