在Ansible Tower中,如何从另一个项目复制文件到目标服务器?

huangapple go评论96阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2023年5月13日 18:19:07
  • 转载请务必保留本文链接:https://go.coder-hub.com/76242212.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定