1
0
mirror of https://github.com/jcwimer/startup-infrastructure synced 2026-03-24 22:34:42 +00:00

Portainer should be set up with portainer admin password variable from group vars

This commit is contained in:
2018-10-16 13:14:26 -04:00
parent 47316b9171
commit ac825d0353

View File

@@ -9,6 +9,6 @@
- name: Init admin account if it hasn't already - name: Init admin account if it hasn't already
shell: > shell: >
curl -X POST "http://portainer.{{ root_domain }}/api/users/admin/init" -H "accept: application/json" -H \ curl -X POST "http://portainer.{{ root_domain }}/api/users/admin/init" -H "accept: application/json" -H \
"Content-Type: application/json" -d "{ \"Username\": \"admin\", \"Password\": \"admin-password\"}" "Content-Type: application/json" -d "{ \"Username\": \"admin\", \"Password\": \"{{ portainer_admin_password }}\"}"
when: not admin_account_check.stdout | search("204") when: not admin_account_check.stdout | search("204")
delegate_to: localhost delegate_to: localhost