2022-12-14 02:23:34 +01:00
|
|
|
---
|
2023-08-21 09:26:14 +02:00
|
|
|
- hosts: containers
|
2022-12-14 02:23:34 +01:00
|
|
|
become: false
|
2023-08-21 01:55:01 +02:00
|
|
|
gather_facts: true
|
2022-12-14 02:23:34 +01:00
|
|
|
tasks:
|
|
|
|
- debug:
|
|
|
|
msg: play1
|
|
|
|
|
|
|
|
- name: Test
|
2023-08-21 09:46:04 +02:00
|
|
|
command: nvram get vts_rulelist
|
2023-08-21 09:49:57 +02:00
|
|
|
when: inventory_hostname in groups['router']
|
2023-08-21 09:52:47 +02:00
|
|
|
register: result
|
2023-08-21 09:54:09 +02:00
|
|
|
|
2023-08-21 09:49:57 +02:00
|
|
|
- debug:
|
2023-08-21 09:58:18 +02:00
|
|
|
msg: "{{ result.stdout | replace('192.168.77.106', '192.168.77.246') }}"
|