英文:
In ansible tower, how to copy files from another project to target servers?
问题
I have 2 repos created in bitbucket:
repo A - public to end users to update configuration files
repo B - private, a playbook to sync configurations files (copy module)
I synced both of the repos to Ansible Tower as 2 projects: project A and B, then added an inventory sourced from repo B's inventory file.
Template is working as expected except copying the files of project B.
May I know how could I set the src parameter in copy module of my playbook so that it could copy all of the config files in project A to target servers in inventory?
Try to find a way to copy files from other project in Ansible Tower.
英文:
I have 2 repos created in bitbucket:
repo A - public to end users to update configuration files
repo B - private, a playbook to sync configurations files (copy module)
I synced both of the repos to Ansible Tower as 2 projects: project A and B, then added an inventory sourced from repo B's inventory file.
Template is working as expected except copying the files of project B.
May I know how could I set the src parameter in copy module of my playbook so that it could copy all of the config files in project A to target servers in inventory?
Try to find a way to copy files from other project in Ansible Tower.
答案1
得分: 0
Git 模块帮助我解决了这个问题。
英文:
Git module helped me solve the issue.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论