Added Nix Flake

This commit is contained in:
2024-05-08 13:06:44 +02:00
parent c6beaf693e
commit 5ecbb4dae6
11 changed files with 65 additions and 20 deletions

View File

@@ -4,7 +4,7 @@ A brief description about the role...
## Variables
| Name | Is Required? | Default |
|:--------------------:|:------------:|:-------------:|
| `hello_world_string` | ✔️ | Hello, World! |
| `lorem_ipsum_string` | | |
| Name | Is Required? | Default |
|:-------------------------------:|:------------:|:-------------:|
| `test_role__hello_world_string` | ✔️ | Hello, World! |
| `test_role__lorem_ipsum_string` | | |

View File

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

View File

@@ -3,9 +3,10 @@
- name: Print an "Hello, World!"
ansible.builtin.debug:
msg: "{{ hello_world_string }}"
msg: "{{ test_role__hello_world_string }}"
- name: Test the `ansible_managed` variable
ansible.builtin.template:
dest: /tmp/ansible.txt
src: ansible.txt.j2
src: ansible.txt.j2
mode: preserve

View File

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