- name: Set URLs for OpenShift GA releases when: not ocp4_installer_use_dev_preview | d(False) | bool set_fact: ocp4_installer_url: "https://mirror.openshift.com/pub/openshift-v4/clients/ocp/{{ ocp4_installer_version }}/openshift-install-linux-{{ ocp4_installer_version }}.tar.gz" ocp4_client_url: "https://mirror.openshift.com/pub/openshift-v4/clients/ocp/{{ ocp4_installer_version }}/openshift-client-linux-{{ ocp4_installer_version }}.tar.gz" - name: Ensure ocp4_installer_url and ocp4_client_url are set assert: that: - ocp4_installer_url | d('') | length > 0 - ocp4_client_url | d('') | length > 0 - name: Get the OpenShift Installer become: yes unarchive: src: "{{ ocp4_installer_url}} " remote_src: yes dest: /usr/bin mode: 0755 owner: root group: root - name: Get the OpenShift CLI become: yes unarchive: src: "{{ ocp4_client_url }}" remote_src: yes dest: /usr/bin mode: 0775 owner: root group: root