Added temporary target hosts group to playbook

This commit is contained in:
Mike Holloway 2024-09-17 14:37:07 -04:00
parent 958caa7726
commit ff6f814fc2
2 changed files with 10 additions and 0 deletions

1
README.md Normal file
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/)

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