From: Sébastien Han Date: Mon, 17 Aug 2015 09:28:20 +0000 (+0200) Subject: Use latest packages X-Git-Tag: v1.0.0~130^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=476c5df38feb3525b7c7c32e79b1498f5f2df7d2;p=ceph-ansible.git Use latest packages Fix back the rolling update playbook. However every single time the playbook will run it will check for new packages and install the latest ones. I don't think this is always the desired behaviour. We need to find a way to conciliate both... Signed-off-by: Sébastien Han --- diff --git a/roles/ceph-common/tasks/installs/install_on_debian.yml b/roles/ceph-common/tasks/installs/install_on_debian.yml index d1813ed2c..002f1fdc6 100644 --- a/roles/ceph-common/tasks/installs/install_on_debian.yml +++ b/roles/ceph-common/tasks/installs/install_on_debian.yml @@ -52,7 +52,7 @@ - name: install ceph apt: > pkg={{ item }} - state=present + state=latest with_items: - ceph - ceph-common #| @@ -64,7 +64,7 @@ - name: install rados gateway apt: > pkg=radosgw - state=present + state=latest update_cache=yes when: rgw_group_name in group_names diff --git a/roles/ceph-common/tasks/installs/install_on_redhat.yml b/roles/ceph-common/tasks/installs/install_on_redhat.yml index d133250b6..8b4bb5aef 100644 --- a/roles/ceph-common/tasks/installs/install_on_redhat.yml +++ b/roles/ceph-common/tasks/installs/install_on_redhat.yml @@ -69,13 +69,13 @@ - name: install ceph yum: > name=ceph - state=present + state=latest when: not ceph_stable_rh_storage - name: install red hat storage ceph mon yum: > name={{ item }} - state=present + state=latest with_items: - ceph - ceph-mon @@ -86,7 +86,7 @@ - name: install red hat storage ceph osd yum: > name={{ item }} - state=present + state=latest with_items: - ceph - ceph-osd @@ -105,7 +105,7 @@ - name: install rados gateway yum: > name=ceph-radosgw - state=present + state=latest when: rgw_group_name in group_names