roles: Fix issue raised by ansible-lint

[601] Don't compare to literal True/False
This commit is contained in:
Alan Orth 2019-11-21 22:55:39 +02:00
parent e68bbb5055
commit 1c631739e7
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
5 changed files with 6 additions and 6 deletions

View File

@ -71,7 +71,7 @@
- name: Configure Let's Encrypt - name: Configure Let's Encrypt
include_tasks: letsencrypt.yml include_tasks: letsencrypt.yml
when: use_letsencrypt is defined and use_letsencrypt == True when: use_letsencrypt is defined and use_letsencrypt is True
tags: letsencrypt tags: letsencrypt
# vim: set ts=2 sw=2: # vim: set ts=2 sw=2:

View File

@ -3,12 +3,12 @@
- block: - block:
- name: Install WordPress - name: Install WordPress
git: repo=https://github.com/WordPress/WordPress.git dest={{ nginx_root_prefix }}/{{ item.domain_name }}/wordpress version={{ item.wordpress_version }} depth=1 force=yes git: repo=https://github.com/WordPress/WordPress.git dest={{ nginx_root_prefix }}/{{ item.domain_name }}/wordpress version={{ item.wordpress_version }} depth=1 force=yes
when: item.has_wordpress is defined and item.has_wordpress == True when: item.has_wordpress is defined and item.has_wordpress is True
loop: "{{ nginx_vhosts }}" loop: "{{ nginx_vhosts }}"
- name: Fix WordPress directory permissions - name: Fix WordPress directory permissions
file: path={{ nginx_root_prefix }}/{{ item.domain_name }} state=directory owner=nginx group=nginx recurse=yes file: path={{ nginx_root_prefix }}/{{ item.domain_name }} state=directory owner=nginx group=nginx recurse=yes
when: item.has_wordpress is defined and item.has_wordpress == True when: item.has_wordpress is defined and item.has_wordpress is True
loop: "{{ nginx_vhosts }}" loop: "{{ nginx_vhosts }}"
tags: wordpress tags: wordpress

View File

@ -20,7 +20,7 @@
- name: Copy php-fpm pool config - name: Copy php-fpm pool config
template: src=php7.3-pool.conf.j2 dest=/etc/php/7.3/fpm/pool.d/{{ item.domain_name }}.conf owner=root group=root mode=0644 template: src=php7.3-pool.conf.j2 dest=/etc/php/7.3/fpm/pool.d/{{ item.domain_name }}.conf owner=root group=root mode=0644
loop: "{{ nginx_vhosts }}" loop: "{{ nginx_vhosts }}"
when: (item.has_wordpress is defined and item.has_wordpress == True) or (item.needs_php is defined and item.needs_php == True) when: (item.has_wordpress is defined and item.has_wordpress is True) or (item.needs_php is defined and item.needs_php is True)
notify: reload php7.3-fpm notify: reload php7.3-fpm
- name: Remove default www pool - name: Remove default www pool

View File

@ -20,7 +20,7 @@
- name: Copy php-fpm pool config - name: Copy php-fpm pool config
template: src=php7.0-pool.conf.j2 dest=/etc/php/7.0/fpm/pool.d/{{ item.domain_name }}.conf owner=root group=root mode=0644 template: src=php7.0-pool.conf.j2 dest=/etc/php/7.0/fpm/pool.d/{{ item.domain_name }}.conf owner=root group=root mode=0644
loop: "{{ nginx_vhosts }}" loop: "{{ nginx_vhosts }}"
when: (item.has_wordpress is defined and item.has_wordpress == True) or (item.needs_php is defined and item.needs_php == True) when: (item.has_wordpress is defined and item.has_wordpress is True) or (item.needs_php is defined and item.needs_php is True)
notify: reload php7.0-fpm notify: reload php7.0-fpm
- name: Remove default www pool - name: Remove default www pool

View File

@ -20,7 +20,7 @@
- name: Copy php-fpm pool config - name: Copy php-fpm pool config
template: src=php7.2-pool.conf.j2 dest=/etc/php/7.2/fpm/pool.d/{{ item.domain_name }}.conf owner=root group=root mode=0644 template: src=php7.2-pool.conf.j2 dest=/etc/php/7.2/fpm/pool.d/{{ item.domain_name }}.conf owner=root group=root mode=0644
loop: "{{ nginx_vhosts }}" loop: "{{ nginx_vhosts }}"
when: (item.has_wordpress is defined and item.has_wordpress == True) or (item.needs_php is defined and item.needs_php == True) when: (item.has_wordpress is defined and item.has_wordpress is True) or (item.needs_php is defined and item.needs_php is True)
notify: reload php7.2-fpm notify: reload php7.2-fpm
- name: Remove default www pool - name: Remove default www pool