run task only if file exists

This commit is contained in:
Alexander Grothe
2017-11-22 11:37:20 +01:00
parent 748df6954e
commit 19a1f98d74
2 changed files with 13 additions and 0 deletions

View File

@@ -25,6 +25,10 @@
regexp: '^(Prompt=).*$'
line: '\1never'
ignore_errors: yes
with_first_found:
- files:
- /etc/update-manager/release-upgrades
skip: true
- name: apt | install basic packages
apt:
name: '{{ item }}'