gantsign / ansible-role-oh-my-zsh

Ansible role for installing and configuring oh-my-zsh
https://galaxy.ansible.com/gantsign/oh-my-zsh
MIT License
165 stars 41 forks source link

Prexis the users variable #118

Closed yodatak closed 3 years ago

yodatak commented 3 years ago

Hi its could be interesting to prefix the users variables beacuase its way too generic ^^

freemanjp commented 3 years ago

@yodatak, thanks for the feedback. users is a common convention, used by many roles, for user-specific config (so you can group user specific config together and avoid repetition of the username) e.g.:

users:
    - username: joe
      role1_var1: eg
      role2_var1: eg
      role3_var1: eg
      role3_var2: eg
    - username: jill
      role3_var1: eg
      role3_var2: eg

The variables users and username aren't prefixed, but the variables under each user are.