Ansible Flash Cards 1
What is the file that controls Ansible?
ansible.cfg
Where Can you find information about that file? (file that controls Ansible)
/etc/ansible/
What file contains the target computers?
inventory
Where Can you find information about that file? (file contains the target computers)
/etc/ansible/hosts
What is the command to install ansible?
sudo yum install ansible
What is the file that contains the execution steps in an ansible instance?
playbook.yml
What is the command to run the file in the ansible instance? ( the file that contains the execution steps in an ansible instance )
ansible-playbook playbook.yml
What is the command to generate a certificate?
ssh-keygen
What is the command to enable that cert on the target server?
ssh-copy-id root@target1
What is the command to open port 22 on a target server?
firewall-cmd –zone=public –add-port=22/tcp –permanent
Why is it important to open port 22 on a target server?
Ansible controller computer calls out to port 22 on the target to interact with the target.
x
x
x
x
x
x
x
x