官术网_书友最值得收藏!

Ansible Tower configuration

Ansible Tower has multiple features to add playbooks to perform scheduling and execution. We will see how we can add custom written playbooks (manual) and add playbooks from version control systems such as Git. Pulling playbooks from  Ansible Galaxy as well. Ansible Galaxy is your hub for finding, reusing, and sharing the best Ansible content.

To add playbooks into Ansible Tower, we have to start by creating projects, then select the SCM TYPE as Manual, and add the playbooks that already exist.

Warning: There are no available playbook directories in /var/lib/awx/projects. Either that directory is empty, or all of the contents are already assigned to other projects. Create a new directory there and make sure the playbook files can be read by the awx system user, or have Tower directly retrieve your playbooks from source control using the SCM type option previously discussed.

We can choose the SCM TYPE set to Git and provide a github.com URL pointing to a playbook:

Git SCM to add playbooks into projects

We can also change the PROJECTS_ROOT under CONFIGURE TOWER to change this location.

The added playbooks are executed by creating a job template. Then we can schedule these jobs (or) we can launch directly:

Following is the screenshot of a new job template creation for playbook execution:

Playbook execution job template 

A job run is successful with output in the following screenshot:

Playbook execution output in Ansible Tower

主站蜘蛛池模板: 乐亭县| 乌兰浩特市| 博白县| 荃湾区| 石楼县| 四会市| 九江市| 乳源| 民县| 左贡县| 项城市| 汽车| 海宁市| 内乡县| 龙山县| 观塘区| 绥中县| 灌云县| 宁都县| 龙岩市| 长汀县| 吕梁市| 巩义市| 通州市| 通江县| 珲春市| 安宁市| 雅安市| 甘孜| 和平县| 嘉荫县| 阜康市| 枞阳县| 天镇县| 寿宁县| 长兴县| 台湾省| 合水县| 柳州市| 景洪市| 婺源县|