Skip to content

Commit

Permalink
add true to default, fix stratum0 check
Browse files Browse the repository at this point in the history
  • Loading branch information
bedroge committed Nov 17, 2023
1 parent f1efde8 commit 69745e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions roles/cvmfs_server_meta_info/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
group: root
mode: 0644
become: true
when: (cvmfs_repositories | length) > 0
when: (cvmfs_repositories | default(eessi_cvmfs_repositories, true) | length) > 0

- name: Create meta information for each CVMFS repository
ansible.builtin.include_tasks: repo_meta_info.yml
Expand All @@ -18,6 +18,6 @@
recommended-stratum0: "http://{{ item.stratum0 }}/cvmfs/{{ item.repository }}"
recommended-stratum1s: "{{ eessi_cvmfs_server_urls | selectattr('domain', 'in', item.repository) |
map(attribute='urls') | map('regex_replace', '@fqrn@', item.repository) }}"
with_items: "{{ cvmfs_repositories | default(eessi_cvmfs_repositories) }}"
when: "'cvmfsstratum0servers' in group_names or cvmfs_role == 'stratum0'"
with_items: "{{ cvmfs_repositories | default(eessi_cvmfs_repositories, true) }}"
when: ('cvmfsstratum0servers' in group_names and inventory_hostname in groups['cvmfsstratum0servers']) or cvmfs_role == 'stratum0'
...

0 comments on commit 69745e9

Please sign in to comment.