diff --git a/keycloak/scripts/ansible/keycloak.yml b/keycloak/scripts/ansible/keycloak.yml index fff6fbb3..bedfec20 100644 --- a/keycloak/scripts/ansible/keycloak.yml +++ b/keycloak/scripts/ansible/keycloak.yml @@ -1,5 +1,5 @@ --- -- hosts: localhost +- hosts: all become: true vars_files: - ['{{inventory_dir}}/secrets.yml'] diff --git a/keycloak/scripts/pipelines/keycloak-build/Jenkinsfile.dev b/keycloak/scripts/pipelines/keycloak-build/Jenkinsfile.dev index e39e8753..841be598 100644 --- a/keycloak/scripts/pipelines/keycloak-build/Jenkinsfile.dev +++ b/keycloak/scripts/pipelines/keycloak-build/Jenkinsfile.dev @@ -14,7 +14,7 @@ node('build-slave') { stage('Build'){ sh('ls') - sh('cd sunbird-auth/keycloak/scripts/ansible && ansible-playbook -i inventories/dev keycloak.yml --tags build --vault-password-file /home/ops/vault -vvv') + sh('cd sunbird-auth/keycloak/scripts/ansible && ansible-playbook -i inventories/dev keycloak.yml --limit localhost --tags build --vault-password-file /home/ops/vault -vvv') } stage('Archive'){ diff --git a/keycloak/scripts/pipelines/keycloak-deploy/Jenkinsfile.dev b/keycloak/scripts/pipelines/keycloak-deploy/Jenkinsfile.dev index c21fd6a8..198be879 100644 --- a/keycloak/scripts/pipelines/keycloak-deploy/Jenkinsfile.dev +++ b/keycloak/scripts/pipelines/keycloak-deploy/Jenkinsfile.dev @@ -20,8 +20,7 @@ node('general-dev') { target: 'sunbird-auth/keycloak/scripts/ansible' ] ); - sh('ls') - sh('cd sunbird-auth/keycloak/scripts/ansible && ansible-playbook -i inventories/dev keycloak.yml --tags deploy --vault-password-file /run/secrets/vault-pass -vvv') + sh('cd sunbird-auth/keycloak/scripts/ansible && ansible-playbook -i inventories/dev keycloak.yml --limit keycloak --tags deploy --vault-password-file /run/secrets/vault-pass -vvv') } stage('Archive'){