Skip to content

Commit bd055a6

Browse files
committed
fix(deploy): always set git_forges
Based on the instructions in packit/private#60, we should run DEPLOYMENT=prod TAGS=secrets make deploy to update the Packit Service config after rotating the tokens, but the tasks that fetch the dictionary containing the git-forge tokens are skipped because of the `TAGS=secrets`, therefore mark the affected tasks with `tags: [always]` to ensure the facts are populated. Related to packit/private#60 Signed-off-by: Matej Focko <[email protected]>
1 parent 7230b1c commit bd055a6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tasks/set-facts.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,14 @@
4949
redis_hostname: "{{ kv_database }}"
5050

5151
- name: Set Bitwarden URI
52+
tags:
53+
- always
5254
ansible.builtin.set_fact:
5355
bw_uri: "ansible://{{ service }}/{{ deployment }}"
5456

5557
- name: Fetch git forges
5658
when: deployment != "dev"
59+
tags:
60+
- always
5761
ansible.builtin.set_fact:
5862
git_forges: "{{ lookup('community.general.bitwarden', bw_uri + '/git', search='') }}"

0 commit comments

Comments
 (0)