| | |
| | | shell: "/usr/bin/go env GOARCH" |
| | | register: GOARCH_VAR |
| | | |
| | | - name: Get the OpenShift Installer |
| | | - name: Get the OpenShift Installer (up to Beta3) |
| | | when: ocp4_installer_version is version_compare('0.17', '<') |
| | | become: yes |
| | | get_url: |
| | | url: "https://github.com/openshift/installer/releases/download/{{ ocp4_installer_version }}/openshift-install-{{ GOOS_VAR.stdout }}-{{ GOARCH_VAR.stdout }}" |
| | |
| | | owner: root |
| | | group: root |
| | | |
| | | - name: Get the OpenShift CLI |
| | | - name: Get the OpenShift CLI (up to Beta3) |
| | | when: ocp4_installer_version is version_compare('0.17', '<') |
| | | become: yes |
| | | unarchive: |
| | | src: "https://mirror.openshift.com/pub/openshift-v3/clients/{{ oc_client_version }}/linux/oc.tar.gz" |
| | |
| | | owner: root |
| | | group: root |
| | | |
| | | - name: Get the OpenShift Installer for Beta4 onwards |
| | | when: ocp4_installer_version is version_compare('4.0', '>=') |
| | | become: yes |
| | | unarchive: |
| | | src: "https://mirror.openshift.com/pub/openshift-v4/clients/ocp/{{ ocp4_installer_version }}/openshift-install-linux-{{ ocp4_installer_version }}.tar.gz" |
| | | remote_src: yes |
| | | dest: /usr/bin |
| | | mode: 0755 |
| | | owner: root |
| | | group: root |
| | | |
| | | - name: Get the OpenShift CLI for Beta4 onwards |
| | | when: ocp4_installer_version is version_compare('4.0', '>=') |
| | | become: yes |
| | | unarchive: |
| | | src: "https://mirror.openshift.com/pub/openshift-v4/clients/ocp/{{ ocp4_installer_version }}/openshift-client-linux-{{ ocp4_installer_version }}.tar.gz" |
| | | remote_src: yes |
| | | dest: /usr/bin |
| | | mode: 0775 |
| | | owner: root |
| | | group: root |
| | | |
| | | - name: Generate SSH keys |
| | | shell: ssh-keygen -b 2048 -t rsa -f ~/.ssh/id_rsa -q -N "" |
| | | args: |