summaryrefslogtreecommitdiffstats
path: root/roles/openshift_preflight/nodes/tasks/main.yml
blob: a10e69024e1fcb3bfeab6aad27e876fd1e6cbe6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
---
# determine if yum install of node pkgs will work
- when: not openshift.common.is_containerized | bool
  block:

    - name: main node packages availability
      check_yum_update:
        packages:
          - "{{ openshift.common.service_type }}"
          - "{{ openshift.common.service_type }}-node"
          - "{{ openshift.common.service_type }}-sdn-ovs"
      register: r

    - set_fact:
        oo_preflight_check_results: "{{ oo_preflight_check_results + [r|combine({'_task': 'main node packages availability'})] }}"

    - name: other node packages availability
      check_yum_update:
        packages:
          - docker
          - PyYAML
          - firewalld
          - iptables
          - iptables-services
          - nfs-utils
          - ntp
          - yum-utils
          - dnsmasq
          - libselinux-python
          - ceph-common
          - glusterfs-fuse
          - iscsi-initiator-utils
          - pyparted
          - python-httplib2
          - openssl
          - flannel
          - bind
      register: r

    - set_fact:
        oo_preflight_check_results: "{{ oo_preflight_check_results + [r|combine({'_task': 'other node packages availability'})] }}"