소스 검색

fix structured field default ramification

Grega Bremec 1 개월 전
부모
커밋
aca4e47ce4
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      playbooks/roles/deploy-rhbk/tasks/main.yml

+ 1 - 2
playbooks/roles/deploy-rhbk/tasks/main.yml

@@ -33,8 +33,7 @@
 #
 - name: Tech hack. Prevent anything from blowing up because rhbk is defined somewhere, but not its structured contents.
   ansible.builtin.set_fact:
-    rhbk:
-      db: {}
+    rhbk: "{{ rhbk | default({}) | combine({ 'db': {} }) }}"
   when:
     - rhbk.db is not defined