Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,9 @@ cvmfs_config_repo: {}
# CVMFS_CONFIG_REPOSITORY is not supported on Debian < 9, Ubuntu LTS < 18.04
cvmfs_config_repo_supported: >-
{{
'true' if ansible_os_family != 'Debian' else (
'true' if (ansible_distribution == 'Debian' and ansible_distribution_version is version('9', '>=')) else (
'true' if (ansible_distribution == 'Ubuntu' and ansible_distribution_version is version('18.04', '>=')) else
'false'))
ansible_os_family != 'Debian' or
(ansible_distribution == 'Debian' and ansible_distribution_version is version('9', '>=')) or
(ansible_distribution == 'Ubuntu' and ansible_distribution_version is version('18.04', '>='))
}}

# When to update the GeoIP database, if cvmfs_geo_license_key is defined
Expand Down
2 changes: 1 addition & 1 deletion tasks/client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
when: not ansible_check_mode and "CernVM-FS map is not referenced" in cvmfs_config_chksetup_out.stdout

- name: Configure CernVM-FS config repository
when: cvmfs_config_repo and cvmfs_config_repo_supported
when: (cvmfs_config_repo | length > 0) and (cvmfs_config_repo_supported | bool)
block:
- name: Create config repo config
ansible.builtin.copy:
Expand Down