Ansible check mode fails if NGINX is not installed (#497)

This commit is contained in:
Alessandro Fael Garcia 2022-03-08 17:42:29 +01:00 committed by GitHub
parent bc7dfad541
commit 16d1d18d6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -1,5 +1,11 @@
# Changelog # Changelog
## 0.23.1 (Unreleased)
BUG FIXES:
Ansible check mode runs will no longer fail if NGINX has not yet been installed.
## 0.23.0 (February 16, 2022) ## 0.23.0 (February 16, 2022)
BREAKING CHANGES: BREAKING CHANGES:

View File

@ -31,6 +31,7 @@
failed_when: config_check.rc != 0 failed_when: config_check.rc != 0
when: when:
- config_check.stderr_lines is defined - config_check.stderr_lines is defined
- config_check.stderr_lines != []
- config_check.rc != 0 - config_check.rc != 0
- nginx_state != "absent" - nginx_state != "absent"
listen: (Handler) Run NGINX listen: (Handler) Run NGINX