You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@jcalazan I've been updating the playbook to use ansible-vault for my deployment. Per the ansible best practices for variables and vaults, I suggest we switch the /env_vars/{{env}} path to a /group_vars/ path. This uses the default variables for each group defined in the inventory file - this way we can then also remove the vars_files directives in each playbook (ansible finds the /group_vars/ automatically based on the group name).
I could then update the README to include instructions on using ansible-vault in deployment.
What do you think? Is there a reason you used /env_vars/ instead of /group_vars/ that I might have missed?
Happy to submit a PR if the above makes sense to you.
The text was updated successfully, but these errors were encountered:
@YPCrumble No particular reason, I probably just wasn't aware of it. If we can implement group_vars for the different environments that definitely sounds better! Please feel free to open a PR. Thanks!
@jcalazan I've been looking more at this. The goal I'd have to including group_vars would also be to move the variables that need adjusting for deploying a new site into one place. Currently it feels like there are multiple places I need to hunt down and adjust each time I deploy a site.
@jcalazan I've been updating the playbook to use ansible-vault for my deployment. Per the ansible best practices for variables and vaults, I suggest we switch the
/env_vars/{{env}}
path to a/group_vars/
path. This uses the default variables for each group defined in the inventory file - this way we can then also remove thevars_files
directives in each playbook (ansible finds the/group_vars/
automatically based on the group name).I could then update the README to include instructions on using
ansible-vault
in deployment.What do you think? Is there a reason you used
/env_vars/
instead of/group_vars/
that I might have missed?Happy to submit a PR if the above makes sense to you.
The text was updated successfully, but these errors were encountered: