ansible hosts 同步到 ansible tower

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/CodyGuo/article/details/86029550

ansible hosts 同步到 ansible tower


同步ansible的hosts文件到tower中,可以在tower建一个任务计划,定时执行同步命令。

文档

https://docs.ansible.com/ansible-tower/latest/html/administration/tower-manage.html#inventory-import

同步命令

awx-manage inventory_import --exclude-empty-groups --overwrite --overwrite-vars -v 3 --source=/etc/ansible/hosts --inventory-name=hosts

猜你喜欢

转载自blog.csdn.net/CodyGuo/article/details/86029550