Ansible

Pinging all hosts

$ ansible all -m ping

Minimal config

Use the inventory file from the current directory.

[defaults]
inventory = ./inventory

Bootstrapping the server

In case the server does not have Python installed.

bootstrap.yml

---

- hosts: all
  gather_facts: False

  tasks:
  - name: install python 2
    raw: test -e /usr/bin/python || (apt -y update && apt install -y python)

...
$ ansible-playbook bootstrap.yml