On Fri, 6 Dec 2019 08:24:10 -0800 (PST)
Xinhuan Zheng <[email protected]> wrote:

> # group_vars/all
> 
> vars:
>   - remote_user: ansible
>   - become: yes
>   - become_method: sudo

It's not necessary to use the "vars:" directive in the files.
See "Organizing host and group variables"
https://docs.ansible.com/ansible/latest/user_guide/intro_inventory.html#organizing-host-and-group-variables

# group_vars/all
remote_user: ansible
become: yes
become_method: sudo

Cheers,

        -vlado

-- 
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/20191206173012.334856c8%40gmail.com.

Attachment: pgpMW09IgqT72.pgp
Description: OpenPGP digital signature

Reply via email to