Fix tasks that falsely report 'changes'.

This commit is contained in:
Andreas B. Mundt 2021-11-20 18:06:25 +01:00 committed by Andreas B. Mundt
parent 2c0a1c5392
commit d3e732bc89

View file

@ -39,6 +39,8 @@
/usr/bin/apt-get full-upgrade --yes'
args:
chdir: /var/lib/machines/{{ contname }}00
register: cmd_result
changed_when: cmd_result.stdout is not search('0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.')
- name: provide {{ contuser }} user account
command:
@ -95,10 +97,11 @@
notify: enable and restart containers
########
- name: prepare sysctl configuration
file:
path: /etc/sysctl.d/inotify.conf
state: touch
- name: prepare local sysctl config file
copy:
content: "# Avoid 'too many open files' error:"
dest: /etc/sysctl.d/inotify.conf
force: no
- name: fix too many open files error
sysctl: