fix some ansible 2.8 deprecation warnings
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
8078358ae4
commit
d6cdb40a04
|
@ -8,7 +8,7 @@
|
||||||
baseurl: "https://nginx.org/packages/centos/{{ ansible_distribution_major_version }}/$basearch/"
|
baseurl: "https://nginx.org/packages/centos/{{ ansible_distribution_major_version }}/$basearch/"
|
||||||
gpgkey: https://nginx.org/keys/nginx_signing.key
|
gpgkey: https://nginx.org/keys/nginx_signing.key
|
||||||
gpgcheck: yes
|
gpgcheck: yes
|
||||||
when: nginx_official_repo_enabled
|
when: nginx_official_repo_enabled | bool
|
||||||
|
|
||||||
- name: Installing nginx
|
- name: Installing nginx
|
||||||
package:
|
package:
|
||||||
|
@ -81,7 +81,7 @@
|
||||||
name: allow_nginx_ports
|
name: allow_nginx_ports
|
||||||
state: present
|
state: present
|
||||||
rules: '-A INPUT -p tcp -m multiport --dports {{ nginx_open_ports | join(",") }} -j ACCEPT'
|
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
|
- name: Set selinux booleans
|
||||||
seboolean:
|
seboolean:
|
||||||
|
@ -111,7 +111,7 @@
|
||||||
owner: "{{ nginx_user }}"
|
owner: "{{ nginx_user }}"
|
||||||
group: "{{ nginx_group }}"
|
group: "{{ nginx_group }}"
|
||||||
mode: 0750
|
mode: 0750
|
||||||
when: nginx_default_page_enabled
|
when: nginx_default_page_enabled | bool
|
||||||
become: True
|
become: True
|
||||||
become_user: "{{ nginx_user }}"
|
become_user: "{{ nginx_user }}"
|
||||||
|
|
||||||
|
@ -133,6 +133,6 @@
|
||||||
group: root
|
group: root
|
||||||
state: link
|
state: link
|
||||||
notify: __nginx_reload
|
notify: __nginx_reload
|
||||||
when: nginx_default_page_enabled
|
when: nginx_default_page_enabled | bool
|
||||||
become: True
|
become: True
|
||||||
become_user: root
|
become_user: root
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
- import_tasks: install.yml
|
- import_tasks: install.yml
|
||||||
- import_tasks: tls.yml
|
- import_tasks: tls.yml
|
||||||
when: nginx_tls_enabled
|
when: nginx_tls_enabled | bool
|
||||||
tags: tls_renewal
|
tags: tls_renewal
|
||||||
- import_tasks: post_tasks.yml
|
- import_tasks: post_tasks.yml
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.dest }}"
|
label: "{{ item.dest }}"
|
||||||
notify: __nginx_reload
|
notify: __nginx_reload
|
||||||
when: nginx_tls_source_use_files
|
when: nginx_tls_source_use_files | bool
|
||||||
|
|
||||||
- name: Create Diffie-Hellman Parameter
|
- name: Create Diffie-Hellman Parameter
|
||||||
openssl_dhparam:
|
openssl_dhparam:
|
||||||
|
|
Loading…
Reference in New Issue