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
Ideally, we'd like to be able to specify something like:
http_auth_users:
- username: foopassword: <vault-encrypted string>
- username: barpassword: <vault-encrypted string>state: absent # "present" would be the default, but we need to allow for removal.
for a given vhost, and then the role could loop over these and add or remove them as specified.
If there's a clever way to keep supporting the old single user method, while implementing multi users, that would be ideal, but more likely we'll have to support both ways of specifying users for a while and deprecate the single user way. (i.e. dont forget to handle
Until this gets added, it's possible to just manually add htpasswd tasks to your playbook, you just need to use the same path and permissions that the role uses:
tasks:
- name: Add additional users to htpasswdhtpasswd:
path: "/etc/nginx/includes/deny-anonymous.{{ linux_owner }}-{{ project }}.htpasswd"name: foobarpassword: !vault$ANSIBLE_VAULT;1.1;AES256XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXstate: presentowner: rootgroup: www-data # on debian machines; will be 'nginx' for redhatmode: '0640'tags:
- htpasswd
In some cases, we need to have multiple users set up to access a given virtual host. The role currently only supports a single user.
Ideally, we'd like to be able to specify something like:
for a given vhost, and then the role could loop over these and add or remove them as specified.
If there's a clever way to keep supporting the old single user method, while implementing multi users, that would be ideal, but more likely we'll have to support both ways of specifying users for a while and deprecate the single user way. (i.e. dont forget to handle
ansible-role-virtual-host/templates/etc/nginx/includes/ACCOUNT-PROJECT.core.conf.j2
Line 8 in 7e2955b
The text was updated successfully, but these errors were encountered: