On 12/17/20 1:44 PM, Ivan Labrovic wrote:
> some background on why I could use this is: configuring systems pre-deployed 
> on different cloud providers, on one if
> need to start with 'root' to create the ansible user, on the other i dont 
> have root, but it's 'localadmin')
> Now i have build a script around ansible-playbook, to determine on which 
> provides i will be deploying.
> If i could pass both, i would not need this script construction. From ansible 
> perspecitiv, i should not need to care,
> where my vm is residing...
> 

Why don't you put this information into group_vars/host_vars in your inventory?

Regards
         Racke

> ivan.
> Op donderdag 17 december 2020 om 13:29:18 UTC+1 schreef Ivan Labrovic:
> 
>     Has anyone heard of providing a second --user/--privatekey to 
> ansible-playbook command, just in case the first
>     user/privkey authentication fails?
>     Seem to remember something about this in an Ansible session on the RHEl 
> summit last year.
> 
>     regards,
>     Ivan.
> 
> -- 
> 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] 
> <mailto:[email protected]>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/221f74da-6669-4a80-98aa-e5fa3c9f4b4bn%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/221f74da-6669-4a80-98aa-e5fa3c9f4b4bn%40googlegroups.com?utm_medium=email&utm_source=footer>.


-- 
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration. Provisioning with Ansible.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/95c233bf-26d2-4470-c411-750b5bd3a237%40linuxia.de.

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to