diff --git a/tasks/ceph_preinstall_dnf.yml b/tasks/ceph_preinstall_dnf.yml index 3d45983..6fb56ad 100644 --- a/tasks/ceph_preinstall_dnf.yml +++ b/tasks/ceph_preinstall_dnf.yml @@ -59,7 +59,7 @@ gpgkey: "{{ item.gpgkey | default(omit) }}" name: "{{ item.name }}" priority: "{{ item.priority | default(omit) }}" - state: "{{ item.enabled | default('present') }}" + state: "{{ item.state | default('present') }}" with_items: "{{ ceph_repos }}" register: install_repo until: install_repo is success diff --git a/vars/redhat.yml b/vars/redhat.yml index 7fdc8c8..151569e 100644 --- a/vars/redhat.yml +++ b/vars/redhat.yml @@ -47,7 +47,7 @@ _ceph_repos: - name: ceph description: "Ceph packages for $basearch" file: ceph - baseurl: "{{ ceph_yum_repo_url }}/el$releasever/$basearch" + baseurl: "{{ ceph_repo_url }}/el$releasever/$basearch" gpgcheck: yes enabled: yes priority: 50 @@ -55,7 +55,7 @@ _ceph_repos: - name: ceph-noarch description: "Ceph noarch packages" file: ceph - baseurl: "{{ ceph_yum_repo_url }}/el$releasever/noarch" + baseurl: "{{ ceph_repo_url }}/el$releasever/noarch" gpgcheck: yes enabled: yes priority: 50