Przeglądaj źródła

Adding another default to protect against missing name/desc

Kenny Woodson 7 lat temu
rodzic
commit
b26bfc856d
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      roles/openshift_repos/tasks/main.yaml

+ 1 - 1
roles/openshift_repos/tasks/main.yaml

@@ -12,7 +12,7 @@
 
   - name: Create any additional repos that are defined
     yum_repository:
-      description: "{{ item.description | default(item.name) }}"
+      description: "{{ item.description | default(item.name | default(item.id)) }}"
       name: "{{ item.name | default(item.id) }}"
       baseurl: "{{ item.baseurl }}"
       gpgkey: "{{ item.gpgkey | default(omit)}}"