Added temporary target hosts group to playbook
This commit is contained in:
parent
958caa7726
commit
ff6f814fc2
1
README.md
Normal file
1
README.md
Normal 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/)
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user