]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
Common: If no entitlements, skip repo replacement 118/head
authorZack Cerza <zack@redhat.com>
Fri, 21 Aug 2015 21:13:49 +0000 (15:13 -0600)
committerZack Cerza <zack@redhat.com>
Fri, 21 Aug 2015 21:13:49 +0000 (15:13 -0600)
We were seeing "error while evaluating conditional: replace_repos" when
running against RHEL nodes which were missing entitlements. Even though
that won't be a particularly positive scenario, this was a bug that
should be fixed.

Signed-off-by: Zack Cerza <zack@redhat.com>
roles/common/tasks/rhel-entitlements.yml

index 1ef3581fbb0125c383f20497bf53ae4fc0679946..e51c53e583490498ccce4065a8d84aa429522c6a 100644 (file)
     repo_list: "{{ repo_list_cmd.stdout.split('\n') }}"
   when: repo_list_cmd is defined and not repo_list_cmd|skipped
 
+- name: Set replace_repos if entitlements are missing
+  set_fact:
+    replace_repos: False
+  when: have_entitlements == "False"
+
 - name: Set replace_repos if rhsm_repos differs from repo_list
   set_fact:
     replace_repos: "{{ repo_list|sort != rhsm_repos|sort }}"