More ansible practice
For this weeks’ practice, you will learn more about using variables and registering variables.
Use the following vars file.
Your playbook should:
- create the user identified in the vars file
- change the hostname to that provided in the vars file
- create all the directories and files specified in the vars file
- Create new variables which record the count of how many files are in each directory.
- Display a count of files in directories specified in the vars file using the debug statement.
If you get stuck a solution is here