Ansible

Create inventory

server1  ansible_host=10.1.0.50 ansible_user=jommy

Create ansible.cfg

[defaults]
inventory = inventory

Commands

ansible all --list-hosts
ansible all -m ping
ansible all -m gather_facts