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

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

主站蜘蛛池模板: 余干县| 静乐县| 叙永县| 淅川县| 富锦市| 辽阳市| 崇州市| 宁蒗| 房产| 万盛区| 南乐县| 北辰区| 调兵山市| 炎陵县| 修文县| 广宗县| 雅江县| 沿河| 伊宁市| 五原县| 若羌县| 贡觉县| 金沙县| 彰化县| 黎城县| 育儿| 麻城市| 砚山县| 镇安县| 固始县| 招远市| 太湖县| 遂昌县| 稻城县| 武穴市| 崇礼县| 华蓥市| 福清市| 本溪| 马尔康县| 长岭县|