Please enable JavaScript.
Coggle requires JavaScript to display documents.
Ansible (YAML (liguagem de "marcação" de fácil leitura…
Ansible
Installation
packages =>
git python python-devel python-pip openssl ansible
configuration file
/etc/ansible/ansible.cfg
# sudo
# inventory
configuração do ansible
/etc/ansible/hosts
[node_name]
ip_node
grupos de nodes
Arbitrary Commands
modules
:file_cabinet:
some modules
apt / yum
ping
copy
user
ansible
-m
[module]
-a
[attributes]
Debug
:bug:
verification
-C (check)
-D (diff)
--syntax-check
register:
<string>
debug: var=
<string>
Gathering Facts
:card_file_box:
ansible all -m setup
-a "filter=EXEMPLE* "
(filter the results)
exact names
wildcards
ansible all -m [module]
--tree facts
(filter and creates facts directory)
Variables
command line
--extra-vars
"exemple=yes"
within the playbook
vars:
exemple:
yes
tasks:
thisIsA:
'{{exemple}}'
YAML
liguagem de "marcação" de fácil leitura sequencial
ferramenta de configuração
definida por lista de
chave/valor
python engine
Documentation
ansible-doc
ansible-doc -l (--list)
ansible-doc [module]
ansible-doc -s [module]