Reload Ansible's dynamic inventory

前端 未结 5 1169
-上瘾入骨i
-上瘾入骨i 2020-12-05 06:43

I\'m using Ansible to setup EC2 instances and deploy an app. There\'s a hosts script which gathers tags related servers and groups info. I\'d like to run these actions as a

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-05 06:52

    Take a look at add_host.

    It does add a host (and alternatively a group) to the ansible-playbook in-memory inventory

提交回复
热议问题