Added temporary target hosts group to playbook

main
Mike Holloway 2 months ago
parent 958caa7726
commit ff6f814fc2
  1. 1
      README.md
  2. 9
      podman-host.yml

@ -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…
Cancel
Save