Changed some options in the ansible.cfg
This commit is contained in:
@ -1,6 +0,0 @@
|
||||
- name: Ping my hosts
|
||||
ansible.builtin.ping:
|
||||
|
||||
- name: Print message
|
||||
ansible.builtin.debug:
|
||||
msg: Hello, world!
|
11
roles/test_role/tasks/main.yml
Normal file
11
roles/test_role/tasks/main.yml
Normal file
@ -0,0 +1,11 @@
|
||||
- name: Ping
|
||||
ansible.builtin.ping:
|
||||
|
||||
- name: Print an "Hello, World!"
|
||||
ansible.builtin.debug:
|
||||
msg: Hello, World!
|
||||
|
||||
- name: Test the `ansible_managed` variable
|
||||
ansible.builtin.template:
|
||||
dest: /tmp/ansible.txt
|
||||
src: ansible.txt.j2
|
1
roles/test_role/templates/ansible.txt.j2
Normal file
1
roles/test_role/templates/ansible.txt.j2
Normal file
@ -0,0 +1 @@
|
||||
# {{ ansible_managed }}
|
Reference in New Issue
Block a user