Ansible Flash Cards 1

1
Q

What is the file that controls Ansible?

A

ansible.cfg

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

Where Can you find information about that file? (file that controls Ansible)

A

/etc/ansible/

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

What file contains the target computers?

A

inventory

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

Where Can you find information about that file? (file contains the target computers)

A

/etc/ansible/hosts

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

What is the command to install ansible?

A

sudo yum install ansible

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

What is the file that contains the execution steps in an ansible instance?

A

playbook.yml

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

What is the command to run the file in the ansible instance? ( the file that contains the execution steps in an ansible instance )

A

ansible-playbook playbook.yml

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

What is the command to generate a certificate?

A

ssh-keygen

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

What is the command to enable that cert on the target server?

A

ssh-copy-id root@target1

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

What is the command to open port 22 on a target server?

A

firewall-cmd –zone=public –add-port=22/tcp –permanent

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

Why is it important to open port 22 on a target server?

A

Ansible controller computer calls out to port 22 on the target to interact with the target.

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

x

A

x

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

x

A

x

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

x

A

x

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

x

A

x

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

x

A

x

17
Q

x

A

x

18
Q

x

A

x

19
Q

x

A

x

20
Q

x

A

x

21
Q

x

A

x

22
Q

x

A

x

23
Q

x

A

x