mirror of https://github.com/ceph/ceph-ansible.git
Merge pull request #1870 from Logan2211/omit-default-release
Omit the apt default_release if it is not neededpull/1868/merge
commit
d53f55e807
|
@ -4,19 +4,19 @@
|
||||||
name: "ceph"
|
name: "ceph"
|
||||||
update_cache: no
|
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(omit) }}{{ ansible_distribution_release ~ '-backports' if ceph_origin == 'distro' and ceph_use_distro_backports else ''}}"
|
||||||
|
|
||||||
- name: install ceph-common for debian
|
- name: install ceph-common for debian
|
||||||
apt:
|
apt:
|
||||||
name: ceph-common
|
name: ceph-common
|
||||||
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(omit) }}{{ ansible_distribution_release ~ '-backports' if ceph_origin == 'distro' and ceph_use_distro_backports else ''}}"
|
||||||
|
|
||||||
- name: install ceph-test for debian
|
- name: install ceph-test for debian
|
||||||
apt:
|
apt:
|
||||||
name: ceph-test
|
name: ceph-test
|
||||||
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(omit) }}{{ ansible_distribution_release ~ '-backports' if ceph_origin == 'distro' and ceph_use_distro_backports else ''}}"
|
||||||
when:
|
when:
|
||||||
- ceph_test
|
- ceph_test
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@
|
||||||
apt:
|
apt:
|
||||||
name: ceph-mds
|
name: ceph-mds
|
||||||
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(omit) }}{{ ansible_distribution_release ~ '-backports' if ceph_origin == 'distro' and ceph_use_distro_backports else ''}}"
|
||||||
when:
|
when:
|
||||||
- mds_group_name in group_names
|
- mds_group_name in group_names
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@
|
||||||
apt:
|
apt:
|
||||||
name: ceph-mgr
|
name: ceph-mgr
|
||||||
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(omit) }}{{ ansible_distribution_release ~ '-backports' if ceph_origin == 'distro' and ceph_use_distro_backports else ''}}"
|
||||||
when:
|
when:
|
||||||
- mgr_group_name in group_names
|
- mgr_group_name in group_names
|
||||||
- ceph_release_num.{{ ceph_release }} > ceph_release_num.jewel
|
- ceph_release_num.{{ ceph_release }} > ceph_release_num.jewel
|
||||||
|
|
Loading…
Reference in New Issue