mirror of https://github.com/ceph/ceph-ansible.git
Fix uses of default(omit) with string concatenation
When {{omit}} is concatenated with another string, it expands to something
like __omit_place_holder__63eea0d96dd6ed867b95405e11d87dddf61f448d.
However, in these use-cases we need an empty string.
Regression introduced in d53f55e807
.
Signed-off-by: Leah Neukirchen <leah.neukirchen@mayflower.de>
pull/3573/head
parent
c605ff6a68
commit
4fe7f37849
|
@ -4,6 +4,6 @@
|
|||
name: "{{ debian_ceph_pkgs | unique }}"
|
||||
update_cache: no
|
||||
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
|
||||
default_release: "{{ ceph_stable_release_uca | default(omit) }}{{ 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 '' }}"
|
||||
register: result
|
||||
until: result is succeeded
|
|
@ -3,7 +3,7 @@
|
|||
apt:
|
||||
name: ceph-mds
|
||||
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
|
||||
default_release: "{{ ceph_stable_release_uca | default(omit) }}{{ 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 '' }}"
|
||||
when:
|
||||
- mds_group_name in group_names
|
||||
- ansible_os_family == 'Debian'
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
apt:
|
||||
name: ceph-mgr
|
||||
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
|
||||
default_release: "{{ ceph_stable_release_uca | default(omit) }}{{ 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 '' }}"
|
||||
register: result
|
||||
until: result is succeeded
|
||||
when:
|
||||
|
|
Loading…
Reference in New Issue