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: added check that nexctcloud uid is over 3000
|
||||||
* webapps/nextcloud: fix misplaced gid attribute
|
* webapps/nextcloud: fix misplaced gid attribute
|
||||||
* webapps/nextcloud: fix missing gid
|
* webapps/nextcloud: fix missing gid
|
||||||
|
* check stat.exists before stat.isdir
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
|
|
||||||
|
|
|
@ -119,4 +119,4 @@
|
||||||
cmd: "{{ docker_tls_path }}/shellpki.sh init"
|
cmd: "{{ docker_tls_path }}/shellpki.sh init"
|
||||||
when:
|
when:
|
||||||
- docker_tls_enabled | bool
|
- 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"
|
repository_path: "/usr/share/scripts"
|
||||||
gitignore_items: []
|
gitignore_items: []
|
||||||
when:
|
when:
|
||||||
- _usr_share_scripts.stat.isdir
|
- _usr_share_scripts.stat.exists and _usr_share_scripts.stat.isdir
|
||||||
- ansible_distribution_major_version is version('10', '>=')
|
- ansible_distribution_major_version is version('10', '>=')
|
||||||
tags:
|
tags:
|
||||||
- etc-git
|
- etc-git
|
||||||
|
|
Loading…
Reference in a new issue