its for windows.

Those are not possible to take one variable from the command line and I 
will have to type the same password twice?

четверг, 4 апреля 2019 г., 10:36:58 UTC+4 пользователь Raghavendra Rao 
написал:
>
> On Thu, 4 Apr 2019 at 11:49, <[email protected] <javascript:>> wrote:
>
>> I start playbook : ansible-playbook win_install_ascon.yml --ask-pass
>>
>> define in playbook:
>> ...
>> ansible_become_pass: "{{ remote_pass }}"
>> ...
>>
>> OUT:
>> ...
>>  FAILED! => {"msg": "The field 'become_pass' has an invalid value, which 
>> includes an undefined variable. The error was: 'remote_pass' is undefined"}
>> ...
>>
>> What variable is the password in?
>>
>> I do not want to enter the password twice when: ansible-playbook 
>> win_install_ascon.yml --ask-pass --ask-become-pass
>> I do not want to use ansible-vault
>>
>
> This has nothing to do with ansible vault unless you have vault protected 
> files included in your playbook.
>
> --ask-pass is used for providing a connection password. i.e a way in which 
> the ansible control node talks to the remote systems
> --ask-become-pass is used for providing a pasword for the become_method. 
> for e.g a password for sudo or su....
>
> If you don't have passwordless sudo or su set + do not have SSH keys 
> setup, you have to use both of them in a command.
>
> Refer: 
> https://docs.ansible.com/ansible/latest/user_guide/intro_getting_started.html
>
> -R.Rao
>
>>
>> Thank.
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Ansible Project" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/10cfdd08-a0ed-4627-82b3-998005f23d46%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/ansible-project/10cfdd08-a0ed-4627-82b3-998005f23d46%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/4e8eabd1-a845-4192-81d0-1b52c3f2fc4e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to