mirror of https://github.com/ceph/ceph-ansible.git
ceph-common: update apt cache in it's own task
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit 7dc9c4b5b6
)
pull/1259/head
parent
7277a553fa
commit
9e6da6c45d
|
@ -11,10 +11,14 @@
|
||||||
include: debian_ceph_repository.yml
|
include: debian_ceph_repository.yml
|
||||||
when: ceph_origin == 'upstream'
|
when: ceph_origin == 'upstream'
|
||||||
|
|
||||||
|
- name: update apt cache
|
||||||
|
apt:
|
||||||
|
update_cache: yes
|
||||||
|
|
||||||
- name: install ceph
|
- name: install ceph
|
||||||
apt:
|
apt:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
update_cache: yes
|
update_cache: no
|
||||||
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
|
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
|
||||||
default_release: "{{ ceph_stable_release_uca | default(ansible_distribution_release) }}{{ '-backports' if ceph_origin == 'distro' and ceph_use_distro_backports else ''}}"
|
default_release: "{{ ceph_stable_release_uca | default(ansible_distribution_release) }}{{ '-backports' if ceph_origin == 'distro' and ceph_use_distro_backports else ''}}"
|
||||||
with_items: "{{ debian_ceph_packages }}"
|
with_items: "{{ debian_ceph_packages }}"
|
||||||
|
|
Loading…
Reference in New Issue