From 1cb01861a3e8514421db5ded17ecd2b3626c5a39 Mon Sep 17 00:00:00 2001 From: Keshav Prasad Date: Wed, 24 Aug 2022 18:34:33 +0530 Subject: [PATCH] fix: bootstrap on a multinode scenario --- ansible/roles/keycloak-deploy/tasks/bootstrap.yml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/ansible/roles/keycloak-deploy/tasks/bootstrap.yml b/ansible/roles/keycloak-deploy/tasks/bootstrap.yml index 7df5d1e503..dcefe36e30 100644 --- a/ansible/roles/keycloak-deploy/tasks/bootstrap.yml +++ b/ansible/roles/keycloak-deploy/tasks/bootstrap.yml @@ -28,7 +28,6 @@ shell: "nohup {{keycloak_home}}/bin/standalone.sh -Dkeycloak.profile.feature.upload_scripts=enabled -b={{ansible_default_ipv4.address}} -bprivate={{ansible_default_ipv4.address}} --server-config standalone-ha.xml &" become: yes become_user: "{{ wildfly_user }}" - run_once: true notify: wait for keycloak to start - meta: flush_handlers @@ -37,7 +36,6 @@ apt: name: ["python-setuptools"] update_cache: true - run_once: true - name: Ensure python packages are installed apt: @@ -55,38 +53,32 @@ copy: src: "{{ role_path }}/files/python-keycloak-0.12.0" dest: /tmp/ - run_once: true - name: Initialize python library to run keycloak bootstrap script shell: cd /tmp/python-keycloak-0.12.0 && python setup.py install - run_once: true - name: Save keycloak vars to json template: src: "keycloak-bootstrap.conf.j2" dest: "/tmp/keycloak-bootstrap.conf.json" mode: "0644" - run_once: true - name: Copy realm json file to tmp location template: src: "keycloak-realm.j2" dest: "/tmp/keycloak-realm.json" mode: "0644" - run_once: true - name: Copy user manager roles file to tmp location copy: src: "files/python-keycloak-0.12.0/roles.json" dest: "/tmp/roles.json" mode: "0644" - run_once: true - name: Copy the keycloak bootstrap script copy: src: "{{ role_path }}/files/python-keycloak-0.12.0/keycloak" dest: /tmp - run_once: true - name: Run the keycloak bootstrap script shell: cd /tmp/keycloak/ && python keycloak_main.py /tmp/keycloak-bootstrap.conf.json