fix some ansible 2.8 deprecation warnings
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2019-05-19 22:49:00 +02:00
parent 8078358ae4
commit d6cdb40a04
3 changed files with 6 additions and 6 deletions

View File

@ -8,7 +8,7 @@
baseurl: "https://nginx.org/packages/centos/{{ ansible_distribution_major_version }}/$basearch/"
gpgkey: https://nginx.org/keys/nginx_signing.key
gpgcheck: yes
when: nginx_official_repo_enabled
when: nginx_official_repo_enabled | bool
- name: Installing nginx
package:
@ -81,7 +81,7 @@
name: allow_nginx_ports
state: present
rules: '-A INPUT -p tcp -m multiport --dports {{ nginx_open_ports | join(",") }} -j ACCEPT'
when: nginx_iptables_enabled
when: nginx_iptables_enabled | bool
- name: Set selinux booleans
seboolean:
@ -111,7 +111,7 @@
owner: "{{ nginx_user }}"
group: "{{ nginx_group }}"
mode: 0750
when: nginx_default_page_enabled
when: nginx_default_page_enabled | bool
become: True
become_user: "{{ nginx_user }}"
@ -133,6 +133,6 @@
group: root
state: link
notify: __nginx_reload
when: nginx_default_page_enabled
when: nginx_default_page_enabled | bool
become: True
become_user: root

View File

@ -1,6 +1,6 @@
---
- import_tasks: install.yml
- import_tasks: tls.yml
when: nginx_tls_enabled
when: nginx_tls_enabled | bool
tags: tls_renewal
- import_tasks: post_tasks.yml

View File

@ -11,7 +11,7 @@
loop_control:
label: "{{ item.dest }}"
notify: __nginx_reload
when: nginx_tls_source_use_files
when: nginx_tls_source_use_files | bool
- name: Create Diffie-Hellman Parameter
openssl_dhparam: