From the course: Ansible: From Basics to Guru by Pearson

Unlock this course with a free trial

Join today to access over 25,200 courses taught by industry experts.

Lesson 14 lab solution: Advanced Ansible Tower usage

Lesson 14 lab solution: Advanced Ansible Tower usage - Ansible Tutorial

From the course: Ansible: From Basics to Guru by Pearson

Lesson 14 lab solution: Advanced Ansible Tower usage

All right, the solution for this lab is starting on my MacBook, and why is that? That's because AnsibleTower is all about using resources from Git, and I am going to make sure that the playbooks that are behind this workflow project are in Git. So I'm starting with createUser.yaml, in which I am going to create user. Host Ansible 1, and the tasks, well, we use the user module. the name set to username and the password set to password. I keep it simple because I want to focus on the Git workflow and we've talked sufficiently about passwords in the last lesson. So next I'm using vim create there, and in there I am going to create a directory. Hosts is still Ansible 1, on the tasks this time we are using file to create the path, set the path to username there and the owner is set to username and we also need state directory because otherwise the file module doesn't know what to do with it. And we have the last playbook, which is failing.yaml and failing.yaml. Host is localhost and task…

Contents