Wolfgang Kulhanek
2018-04-30 466a4a93ca43c50e4b8d1d4168b109950c8cf9e7
Fixed wrong check on pre-pulling cri-o image
1 files modified
23 ■■■■■ changed files
ansible/software_playbooks/openshift.yml 23 ●●●●● patch | view | raw | blame | history
ansible/software_playbooks/openshift.yml
@@ -95,6 +95,29 @@
  tags:
    - openshift_node_tasks
- name: Install Atomic and pre-pull CRI-O container for CRI-O installation
  hosts:
    - nodes
    - infranodes
    - masters
  become: true
  gather_facts: false
  vars_files:
    - "{{ ANSIBLE_REPO_PATH }}/configs/{{ env_type }}/env_vars.yml"
    - "{{ ANSIBLE_REPO_PATH }}/configs/{{ env_type }}/env_secret_vars.yml"
  tags:
    - cri-o
  tasks:
    - name: Install atomic on nodes
      yum:
        name: atomic
        state: present
      when: container_runtime == "cri-o"
    - name: Pre-pull cri-o image to nodes
      command: "atomic pull --storage ostree registry.access.redhat.com/openshift3/cri-o:latest"
      when: container_runtime == "cri-o"
- name: Configuring glusterfs nodes
  gather_facts: False
  become: yes