Paralelismo Flashcards

1
Q

Como se listan las tareas de un playbook

A

ansible-playbook —list-tasks internet.yml

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

Como se ve cuantos scripts de Python se generan

A

ansible-config dump| grep -I forks

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

Como se llama la variable y default de ella para m f

A

DEFAULT_FORKS = 5

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

Como se coloca un fork de 2 en ansible archivo de configuración

A

vi ansible.cfg

forks=2

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

Ejemplo

Para colocar directivo serial

A

——

  • name: update webservers
    hosts: webservers
    serial: 2tasks:
    - name: latest version installed 
       yum:
           name: httpd 
           state: latest
How well did you know this?
1
Not at all
2
3
4
5
Perfectly