The "update apt cache" in the ceph-handler role was never called and the
handler trigger after adding the uca repository doesn't exist at all.
Instead of using a handler for that we can just set the update_cache
parameter to true like the other apt_repository tasks.
Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
apt_repository:
repo: "deb {{ ceph_stable_repo_uca }} {{ ceph_stable_release_uca }} main"
state: present
- update_cache: no
- notify: update apt cache if a repo was added
+ update_cache: yes
- not rolling_update | bool
- not docker2podman | default(False) | bool
block:
- - name: update apt cache
- apt:
- update-cache: yes
- when: ansible_os_family == 'Debian'
- register: result
- until: result is succeeded
-
- name: make tempdir for scripts
tempfile:
state: directory