From: Dan Mick Date: Wed, 14 May 2025 00:35:03 +0000 (-0700) Subject: examples/builder.yml: set api token based on api_uri X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=873e9cbe9f6fa5374a08d4ffbe219dd289af13c0;p=ceph-build.git examples/builder.yml: set api token based on api_uri This is really the ceph-jenkins ssh user's password, but they're now stored in ceph-sepia-secrets so they don't have to be found and entered on the cmdline here This keeps 'one ansible-vault encrypt output' in one file, and should be easier to edit/view/etc. Signed-off-by: Dan Mick --- diff --git a/ansible/examples/builder.yml b/ansible/examples/builder.yml index 5ae248b8..b2473513 100644 --- a/ansible/examples/builder.yml +++ b/ansible/examples/builder.yml @@ -27,14 +27,9 @@ tasks: - - name: "Include secrets" - include_vars: "{{ secrets_path | mandatory }}/jenkins_api_token.yml" - no_log: true - tags: - always - - - set_fact: - token: "{{ jenkins_api_token }}" + - name: "Include appropriate jenkins API token" + # sets 'token' + include_vars: "{{ secrets_path | mandatory }}/{{ api_uri | replace('https://', '')}}.apitoken.yml" no_log: true tags: always