fix 🐛: Update testvault.yml
This commit updates the `testvault.yml` file to include the `admin_user` variable, addressing a missing configuration element. Additionally, the debug message has been refined for improved clarity and troubleshooting. This ensures proper test execution and provides more informative feedback.
This commit is contained in:
@@ -2,11 +2,14 @@
|
|||||||
- name: Test secrets.yml
|
- name: Test secrets.yml
|
||||||
hosts: localhost
|
hosts: localhost
|
||||||
|
|
||||||
|
vars:
|
||||||
|
admin_user: joseadm
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Import variables from Ansible vault
|
- name: Import variables from Ansible vault
|
||||||
ansible.builtin.include_vars: secrets.yml
|
ansible.builtin.include_vars: secrets.yml
|
||||||
|
|
||||||
- name: debug secrets.yml"
|
- name: debug secrets.yml"
|
||||||
ansible.builtin.debug:
|
ansible.builtin.debug:
|
||||||
msg="The value of the secret is {{ test_password }}"
|
msg: "The value of the secret is {{ test_password }}"
|
||||||
|
|
||||||
Reference in New Issue
Block a user