Initial commit

This commit is contained in:
2024-05-08 13:08:16 +02:00
commit cdd7baf40e
11 changed files with 139 additions and 0 deletions

10
roles/test_role/README.md Normal file
View File

@@ -0,0 +1,10 @@
# Test Role
A brief description about the role...
## Variables
| Name | Is Required? | Default |
|:-------------------------------:|:------------:|:-------------:|
| `test_role__hello_world_string` | ✔️ | Hello, World! |
| `test_role__lorem_ipsum_string` | ❌ | |

View File

@@ -0,0 +1 @@
test_role__hello_world_string: Hello, World!

View File

@@ -0,0 +1,12 @@
- name: Ping
ansible.builtin.ping:
- name: Print an "Hello, World!"
ansible.builtin.debug:
msg: "{{ test_role__hello_world_string }}"
- name: Test the `ansible_managed` variable
ansible.builtin.template:
dest: /tmp/ansible.txt
src: ansible.txt.j2
mode: preserve

View File

@@ -0,0 +1,3 @@
{{ ansible_managed | comment('plain') }}
{{ test_role__lorem_ipsum_string }}