Ansible Tower Flashcards

1
Q

What are Ansible Tower benefits?

A

1) Role based Access control
2) Projects
3) Inventory management
4) Job templates
5) REST API

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the meaning of Ansible acts as gatekeeper to hosts?

A

When using Tower, no employee is required to have direct access to managed hosts. This reduces complexity and increases security.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the advatnages of role based access control in Ansible Tower?

A

User receives only as much control of the managed nodes and playbooks as they need

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a project?

A

bucket of playbooks and roles

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Are inventory part of projects

A

no, inventories are kept separately. but anything related to inventories such as variables are kept in the project.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Where is the best place to store ansible playbooks?

A

SCM, GIT, mercurial: use versioned repository

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

When using versioned repository, how do you ensure Ansible uses the latest version of the playbooks?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are components of inventory management in Ansible Tower?

A

1) inventories
2) default variables
3) groups and hosts
4) access control for inventories
5) dynamic inventory assets and functionality

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the role of job templates?

A

They connect projects with inventories. define how users can run playbook with specific inventories

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are the different mode a user may be allowed to run a playbook?

A

1) check mode

2) live move

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is a job?

A

an executed job template

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What type of information are provided by jobs in Tower?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the add value of the Tower REST API?

A

Allows integration with existing build, deploy, or CI/CD pipelines

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

My tower server is running at http://tower.example.com. What would be the API of the REST service?

A

http://tower.example.com/api/v1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Where can I find documentation on Ansible Tower?

A

https://doc.ansible.com/ansible-tower

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How do I use Tower without the Web GUI?

A

1) Use curl to access the REST API

2) User ansible-cli

17
Q

What is tower-cli?

A

open source tool that allows you to use ansible from the command line

18
Q

After installing tower-cli how do I configure it so I can use it?

A
>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
19
Q

How do you get help from ansible-cli on creating a user?

A

> tower-cli user

>tower-cli user create –help

20
Q

Example command for creating a tower user

A

> tower-cli user create –username guy –password ‘s3kr3t$’ –email guy@example.com –first-name GuyBronze –last-name Threepod

21
Q

Example command to get the list of job templates

A

> tower-cli job-template list –format human

22
Q

Example command to launch a f job template

A

> tower-cli launch job –job-template ‘Deploy App Terroire’ –format human

23
Q

Example command to monitor a job template

A

> tower-cli monitor 11 –format human