Talk:Ansible: Difference between revisions

From Network Security Wiki
Content added Content deleted
No edit summary
Line 1: Line 1:
= Features of Ansible =
* Ansible is Modular
* 1000+ Modules available.
* 1000+ Modules available.
* Modules written in python.
* Modules written in python.
Line 10: Line 12:
controller.example.com
controller.example.com
node1.example.com
node1.example.com

[servers]
node1.example.com
server1.example.com


ansible all -i inventory --list-hosts
ansible all -i inventory --list-hosts

Revision as of 16:37, 17 July 2019

Features of Ansible

  • Ansible is Modular
  • 1000+ Modules available.
  • Modules written in python.

Inventory file

cd install
nano inventory
[all]
controller.example.com
node1.example.com
[servers]
node1.example.com
server1.example.com
ansible all -i inventory --list-hosts

Ansible Config File

/etc/ansible/ansible.cfg
~/.ansible.cfg
ansible.cfg in project directory