summaryrefslogtreecommitdiffstats
path: root/roles/openshift_excluder/tasks/disable.yml
blob: 21801b9946d93af659e371a34e616882ef03365a (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
---
- when: r_openshift_excluder_verify_upgrade
  block:
  - name: Include verify_upgrade.yml when upgrading
    include_tasks: verify_upgrade.yml

# unexclude the current openshift/origin-excluder if it is installed so it can be updated
- name: Disable excluders before the upgrade to remove older excluding expressions
  include_tasks: unexclude.yml
  vars:
    # before the docker excluder can be updated, it needs to be disabled
    # to remove older excluded packages that are no longer excluded
    unexclude_docker_excluder: "{{ r_openshift_excluder_enable_docker_excluder }}"
    unexclude_openshift_excluder: "{{ r_openshift_excluder_enable_openshift_excluder }}"

# Install any excluder that is enabled
- name: Include install.yml
  include_tasks: install.yml

# And finally adjust an excluder in order to update host components correctly. First
# exclude then unexclude
- name: Include exclude.yml
  include_tasks: exclude.yml
  vars:
    # Enable the docker excluder only if it is overridden
    # BZ #1430612: docker excluders should be enabled even during installation and upgrade
    exclude_docker_excluder: "{{ r_openshift_excluder_enable_docker_excluder }}"
    # excluder is to be disabled by default
    exclude_openshift_excluder: false

# All excluders that are to be disabled are disabled
- name: Include unexclude.yml
  include_tasks: unexclude.yml
  vars:
    # If the docker override  is not set, default to the generic behaviour
    # BZ #1430612: docker excluders should be enabled even during installation and upgrade
    unexclude_docker_excluder: false
    # disable openshift excluder is never overridden to be enabled
    # disable it if the docker excluder is enabled
    unexclude_openshift_excluder: "{{ r_openshift_excluder_enable_openshift_excluder }}"