ansible/playbooks/97_test.yml

14 lines
280 B
YAML
Raw Normal View History

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']
register: vts_ruleset
- debug:
2023-08-21 09:51:18 +02:00
msg: {{ vts_ruleset }}