Ansible
Pinging all hosts
$ ansible all -m pingMinimal config
Use the inventory file from the current directory.
[defaults]
inventory = ./inventoryBootstrapping 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