ansible/playbooks/sync_all_test.yaml

13 lines
341 B
YAML
Raw Normal View History

2024-11-14 11:35:42 +01:00
---
- name: import a task
hosts: containers
gather_facts: false
tasks:
- debug:
2024-11-14 11:37:05 +01:00
msg: "{{ item }}"
2024-11-14 12:08:57 +01:00
loop: "{{ selected_containers | split(',') }}"
2024-11-14 11:51:47 +01:00
when: inventory_hostname in groups['morefine-server']
2024-11-14 11:48:21 +01:00
2024-11-14 11:38:45 +01:00
- debug:
2024-11-14 12:07:59 +01:00
msg: "{{ selected_host }}"
2024-11-14 11:51:47 +01:00
when: inventory_hostname in groups['morefine-server']