To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit 05ab1313 authored by Bengt Giger's avatar Bengt Giger
Browse files

Set ini field to absent instead of empty

parent d01430c4
Pipeline #88577 passed with stage
in 21 minutes and 47 seconds
......@@ -2,7 +2,7 @@
- name: Converge
hosts: all
vars:
system_update_manager_excluded: [""]
system_update_manager_excluded: []
tasks:
- name: "Include system_update_manager"
include_role:
......
......@@ -7,6 +7,17 @@
unsafe_writes: true
mode: "0644"
value: "{{ system_update_manager_excluded | join(' ') }}"
when: system_update_manager_excluded | length != 0
- name: Set excluded packages
ini_file:
path: "{{ __system_update_manager_pkgmgr_config }}"
section: main
option: exclude
unsafe_writes: true
mode: "0644"
state: absent
when: system_update_manager_excluded | length == 0
# tracer detects if a system has to be rebooted
- name: Ensure tracer tracer is installed (EL7)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment