From ac825d0353962476e81edd7bd17af3bad6496270 Mon Sep 17 00:00:00 2001 From: Jacob Cody Wimer Date: Tue, 16 Oct 2018 13:14:26 -0400 Subject: [PATCH] Portainer should be set up with portainer admin password variable from group vars --- roles/startup-infrastructure/tasks/configure-portainer.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/startup-infrastructure/tasks/configure-portainer.yml b/roles/startup-infrastructure/tasks/configure-portainer.yml index 3f0da4c..fba266b 100644 --- a/roles/startup-infrastructure/tasks/configure-portainer.yml +++ b/roles/startup-infrastructure/tasks/configure-portainer.yml @@ -9,6 +9,6 @@ - name: Init admin account if it hasn't already shell: > 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") delegate_to: localhost \ No newline at end of file