Ansible Tower Flashcards
What are Ansible Tower benefits?
1) Role based Access control
2) Projects
3) Inventory management
4) Job templates
5) REST API
What is the meaning of Ansible acts as gatekeeper to hosts?
When using Tower, no employee is required to have direct access to managed hosts. This reduces complexity and increases security.
What are the advatnages of role based access control in Ansible Tower?
User receives only as much control of the managed nodes and playbooks as they need
What is a project?
bucket of playbooks and roles
Are inventory part of projects
no, inventories are kept separately. but anything related to inventories such as variables are kept in the project.
Where is the best place to store ansible playbooks?
SCM, GIT, mercurial: use versioned repository
When using versioned repository, how do you ensure Ansible uses the latest version of the playbooks?
1) Activate the flag: Update on Launch
2) Set a scheduled update job on esch project to regularly update the project
3) Manually updates to get more control of when the update happens
What are components of inventory management in Ansible Tower?
1) inventories
2) default variables
3) groups and hosts
4) access control for inventories
5) dynamic inventory assets and functionality
What is the role of job templates?
They connect projects with inventories. define how users can run playbook with specific inventories
What are the different mode a user may be allowed to run a playbook?
1) check mode
2) live move
What is a job?
an executed job template
What type of information are provided by jobs in Tower?
1) Whether the job was successful or not
2) Data and time of execution
3) data and time of completion
4) Name of the person who started a job
What is the add value of the Tower REST API?
Allows integration with existing build, deploy, or CI/CD pipelines
My tower server is running at http://tower.example.com. What would be the API of the REST service?
http://tower.example.com/api/v1
Where can I find documentation on Ansible Tower?
https://doc.ansible.com/ansible-tower
How do I use Tower without the Web GUI?
1) Use curl to access the REST API
2) User ansible-cli
What is tower-cli?
open source tool that allows you to use ansible from the command line
After installing tower-cli how do I configure it so I can use it?
>tower-cli config host 10.42.0.42 >tower-cli config username admin >tower-cli config password macaboBRULE >tower-cli config verify_ssl false >tower-cli config format yaml >tower-cli config
How do you get help from ansible-cli on creating a user?
> tower-cli user
>tower-cli user create –help
Example command for creating a tower user
> tower-cli user create –username guy –password ‘s3kr3t$’ –email guy@example.com –first-name GuyBronze –last-name Threepod
Example command to get the list of job templates
> tower-cli job-template list –format human
Example command to launch a f job template
> tower-cli launch job –job-template ‘Deploy App Terroire’ –format human
Example command to monitor a job template
> tower-cli monitor 11 –format human