ansible all --list-hosts ansible all -m ping
- name: helloworld hosts: nodes tasks: - name: Ping my hosts ansible.builtin.ping: - name: Print message ansible.builtin.debug: msg: Hello world
ansible-playbook helloworld.yaml
python3 -m pip install --user ansible
[nodes]
10.45.0.1
10.45.0.2
10.45.0.3
10.45.0.4
10.45.0.5