Fix tasks that falsely report 'changes'.
This commit is contained in:
parent
2c0a1c5392
commit
d3e732bc89
1 changed files with 7 additions and 4 deletions
|
@ -39,6 +39,8 @@
|
||||||
/usr/bin/apt-get full-upgrade --yes'
|
/usr/bin/apt-get full-upgrade --yes'
|
||||||
args:
|
args:
|
||||||
chdir: /var/lib/machines/{{ contname }}00
|
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
|
- name: provide {{ contuser }} user account
|
||||||
command:
|
command:
|
||||||
|
@ -95,10 +97,11 @@
|
||||||
notify: enable and restart containers
|
notify: enable and restart containers
|
||||||
|
|
||||||
########
|
########
|
||||||
- name: prepare sysctl configuration
|
- name: prepare local sysctl config file
|
||||||
file:
|
copy:
|
||||||
path: /etc/sysctl.d/inotify.conf
|
content: "# Avoid 'too many open files' error:"
|
||||||
state: touch
|
dest: /etc/sysctl.d/inotify.conf
|
||||||
|
force: no
|
||||||
|
|
||||||
- name: fix too many open files error
|
- name: fix too many open files error
|
||||||
sysctl:
|
sysctl:
|
||||||
|
|
Loading…
Add table
Reference in a new issue