Ansible Flashcards

1
Q

Fichero donde se encuentran los servidores/grupos que automatizar en Ansible

A

etc/ansible/hosts

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

ansible all -m apt -a “name=vim”

A

instala vim en todos los servidores

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

ansible all -m ping

A

verifica la conectividad con todos los hosts definidos en el inventario de Ansible.

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

ansible all -a “uname -a”

A

obtiene información del sistema operativo de cada host definido en tu inventario Ansible

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

ansible all -m file -a “dest=/var/www/prueba mode=644 state=directory

A

crear un directorio

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

ansible-playbook apache.ym

A

ejecuta un playbook

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