roles/gitlab/tasks/main.yml: update

This commit is contained in:
Haitao Pan 2023-05-11 23:36:06 +08:00
parent b6b11767e0
commit c6af085459
2 changed files with 3 additions and 3 deletions

View File

@ -59,8 +59,8 @@ jobs:
smtp_password=$SMTP_PASSWORD
gitlab_odic_client_token=$GITLAB_OIDC_CLIENT_TOKEN
EOF
#ansible-playbook -i hosts/inventory jobs/init_ssl_cert -D
#ansible-playbook -i hosts/inventory jobs/init_k3s_cluster -D
ansible-playbook -i hosts/inventory jobs/init_ssl_cert -D
ansible-playbook -i hosts/inventory jobs/init_k3s_cluster -D
ansible-playbook -i hosts/inventory jobs/init_gitlab -D
#ansible-playbook -i hosts/inventory jobs/init_chatwithgpt -D
#ansible-playbook -i hosts/inventory jobs/init_harbor -D

View File

@ -28,7 +28,7 @@
- name: "cluster {{ ClusterContext }} Create New Generic Secret from Key/Vaule"
shell: 'kubectl delete secret {{ item.secret_name }} -n {{ namespace }} || echo true; kubectl create secret generic {{ item.secret_name }} --from-literal={{ item.key }}="{{ item.value }}" -n {{ namespace }}'
loop:
- { secret_name: 'gitlab-sso-secret', key: 'password', value: "provider=/tmp/provider.yaml" }
- { secret_name: 'gitlab-sso-secret', key: 'provider', value: "provider=/tmp/provider.yaml" }
- { secret_name: 'gitlab-db-secret', key: 'password', value: 'hostvars[groups[group][0]].pg_db_password' }
- { secret_name: 'gitlab-redis-secret', key: 'password', value: 'hostvars[groups[group][0]].redis_password' }