github.com/cvmfs/docker-graphdriver@v0.0.0-20181206110523-155ec6df0521/provision/roles/cvmfs-server/tasks/install.yml (about)

     1  ---
     2  - name: Install CernVM-FS (Ubuntu)
     3    apt:
     4      deb: "{{ workdir }}/{{ item.value.file }}"
     5      state: present
     6    with_dict: "{{ pkgs_ubuntu }}"
     7    when: ansible_distribution == "Ubuntu"
     8  
     9  - name: Install CernVM-FS (CentOS)
    10    yum:
    11      name: "{{ workdir }}/{{ item.value.file }}"
    12      state: present
    13    with_dict: "{{ pkgs_centos }}"
    14    when: ansible_distribution == "CentOS" and item.value.file.find('server') == -1
    15  
    16  - name: TEMPORARY SOLUTION - Install cvmfs-server (CentOS)
    17    shell: rpm -q cvmfs-server || rpm -U --nodeps "{{ workdir }}/{{ pkgs_centos.cvmfs_server.file }}"
    18    args:
    19      creates: "/bin/cvmfs_server"
    20  
    21    when: ansible_distribution == "CentOS"