Maybe vault os what you need:
https://docs.ansible.com/ansible/latest/user_guide/vault.html
A sexta, 22/10/2021, 10:50, vaishnavi kakad
escreveu:
> Hi All,
>
> How we can add the hidden password in Ansible ?
>
> For eg :
> - name: Download image files
> get_url:
> url: http://0.0.0.0/XYZ.
nclude_tasks: external.yaml
> vars:
> my_var: var2
>
> On Saturday, 23 February 2019 20:27:12 UTC+5:30, Paulo Silva wrote:
>>
>> Hi,
>>
>> Is it possible do to something like this inside a role?
>>
>> - name: task with var1
>> inclu
Hi,
Is it possible do to something like this inside a role?
- name: task with var1
include_tasks: external.yaml
vars:
my_var=var1
- name task with var2
include_tasks: external.yaml
vars:
my_var=var2
I'm no getting any error but it appears that only the first include_tasks
is us