June 2020
Intermediate to advanced
410 pages
9h 52m
English
While testing a playbook, it might make sense to test on a restricted number of machines; for instance, just one. Let's get started:
---- hosts: all tasks: - debug: msg: "Hello, World!"
[hosts]host1.example.comhost2.example.comhost3.example.com
Let's run the playbook in the usual way with the following command:
$ ansible-playbook -i inventory helloworld.yaml
By doing this, we will receive the following output:
PLAY ...