c837b46e-962e-4fff-8e83-ff9de83d9f3d
prompter
Write an Ansible playbook to display the message "Hello World"
3420f91e-66a6-4356-941e-1924698a8c55
c837b46e-962e-4fff-8e83-ff9de83d9f3d
assistant
Here's an example Ansible playbook that will display the message "Hello World" on the target host:

---
- name: Display "Hello World" message
  hosts: all
  tasks:
    - name: Print "Hello World"
      debug:
        msg: "Hello World"

This playbook consists of one play that runs on all hosts, and one task that displays the message "Hello World" using the debug module.

To run this playbook, save it in a file with a .yml extension (e.g., hello_world.yml) and then run the following command: 
ansible-playbook hello_world.yml

This will execute the playbook and display the message "Hello World" on the target host.
f22e5df6-10e3-491c-a3e6-28acf99b6355
3420f91e-66a6-4356-941e-1924698a8c55
prompter
What does the .yml file extension represent?