Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 471 Bytes

chap1_ansible_intro.md

File metadata and controls

21 lines (14 loc) · 471 Bytes

Ansible introduction

Any documentation about a module,... can be found using command "ansible-doc <what_youre_looking_for>" (example: "ansible-doc yum")

ansible -i inventory example -m <command> -u <user> lancer une commande avec le fichier inventory suivant :

[example]
<ip_address>
  • Config file ansible.cfg :
[defaults]
INVENTORY = inventory

Run ad-hoc command

  • Example: ansible example -a "free -h" -u <user>