2024-11-14 11:35:42 +01:00
|
|
|
---
|
|
|
|
- name: import a task
|
|
|
|
hosts: containers
|
|
|
|
gather_facts: false
|
2024-11-14 11:48:21 +01:00
|
|
|
vars:
|
2024-11-14 12:01:26 +01:00
|
|
|
listjojocomma: "{{ selected_containers | split(',') }}"
|
|
|
|
#listjojocomma: "{{ selected_containers | from_json }}"
|
2024-11-14 11:35:42 +01:00
|
|
|
tasks:
|
2024-11-14 11:42:42 +01:00
|
|
|
- debug:
|
2024-11-14 11:48:21 +01:00
|
|
|
msg: "{{ listjojocomma }}"
|
2024-11-14 11:51:47 +01:00
|
|
|
when: inventory_hostname in groups['morefine-server']
|
2024-11-14 11:35:42 +01:00
|
|
|
- debug:
|
2024-11-14 11:37:05 +01:00
|
|
|
msg: "{{ item }}"
|
2024-11-14 11:48:21 +01:00
|
|
|
loop: "{{ listjojocomma }}"
|
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:
|
|
|
|
msg: "{{ item }}"
|
2024-11-14 11:51:47 +01:00
|
|
|
loop: "{{ selected_host }}"
|
|
|
|
when: inventory_hostname in groups['morefine-server']
|