Added temporary target hosts group to playbook

This commit is contained in:
Mike Holloway committed 2024-09-17 14:37:07 -04:00
1 parent 958caa7726
commit ff6f814fc2
2 files changed
+10

No files matched your search

+1
View File
@@ -0,0 +1 @@
Play runtime target host group](https://old.reddit.com/r/ansible/comments/bo8tpk/pass_a_single_ip_as_host_to_playbook/enh1a8j/)
+9
View File
@@ -3,5 +3,14 @@
become: yes
become_user: root
- tasks:
add_host:
groups: run_target_hosts
name: "{{ item }}"
loop: "{{ target_hosts }}"
- hosts: target_hosts
gather_facts: true
- roles:
- podman-host