2025-12-14 09:48:05 +01:00
|
|
|
---
|
|
|
|
|
- name: Test secrets.yml
|
|
|
|
|
hosts: localhost
|
|
|
|
|
|
2025-12-14 09:57:42 +01:00
|
|
|
vars:
|
|
|
|
|
admin_user: joseadm
|
2025-12-14 09:58:37 +01:00
|
|
|
admin_password: changeme
|
2025-12-14 09:57:42 +01:00
|
|
|
|
2025-12-14 09:48:05 +01:00
|
|
|
tasks:
|
|
|
|
|
- name: Import variables from Ansible vault
|
|
|
|
|
ansible.builtin.include_vars: secrets.yml
|
|
|
|
|
|
|
|
|
|
- name: debug secrets.yml"
|
|
|
|
|
ansible.builtin.debug:
|
2025-12-14 09:57:42 +01:00
|
|
|
msg: "The value of the secret is {{ test_password }}"
|
2025-12-14 09:48:05 +01:00
|
|
|
|