forked from evolix/ansible-roles
check stat.exists before stat.isdir
This commit is contained in:
parent
83e61b25a5
commit
1a74bef0bc
|
@ -48,6 +48,7 @@ The **patch** part changes is incremented if multiple releases happen the same m
|
|||
* webapps/nextcloud: added check that nexctcloud uid is over 3000
|
||||
* webapps/nextcloud: fix misplaced gid attribute
|
||||
* webapps/nextcloud: fix missing gid
|
||||
* check stat.exists before stat.isdir
|
||||
|
||||
### Removed
|
||||
|
||||
|
|
|
@ -119,4 +119,4 @@
|
|||
cmd: "{{ docker_tls_path }}/shellpki.sh init"
|
||||
when:
|
||||
- docker_tls_enabled | bool
|
||||
- not tls_certs_stat.stat.isdir
|
||||
- not (tls_certs_stat.stat. and tls_certs_stat.stat.isdir)
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
repository_path: "/usr/share/scripts"
|
||||
gitignore_items: []
|
||||
when:
|
||||
- _usr_share_scripts.stat.isdir
|
||||
- _usr_share_scripts.stat.exists and _usr_share_scripts.stat.isdir
|
||||
- ansible_distribution_major_version is version('10', '>=')
|
||||
tags:
|
||||
- etc-git
|
||||
|
|
Loading…
Reference in a new issue