Fix ansible-lint violations
Ansible Lint |Total|New|Outstanding|Fixed|Trend |:-:|:-:|:-:|:-:|:-: |2768|3|2765|12|:+1: Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/224//ansiblelint">Evolix » ansible-roles » unstable #224</a> Details
gitea/ansible-roles/pipeline/head This commit looks good Details

This commit is contained in:
Jérémy Lecour 2023-03-20 23:48:40 +01:00 committed by Jérémy Lecour
parent ee21973371
commit 70c93310f9
9 changed files with 13 additions and 16 deletions

View File

@ -3,8 +3,7 @@
- name: "Set php version to 8.2 (Debian 12)"
ansible.builtin.set_fact:
php_version: "8.2"
when:
- php_sury_enable == false
when: not (php_sury_enable | bool)
check_mode: no
- name: "Set php config directories (Debian 12)"

View File

@ -3,8 +3,7 @@
- name: "Set php version to 7.4 if Sury repo is not enabled"
ansible.builtin.set_fact:
php_version: "7.4"
when:
- php_sury_enable == False
when: not (php_sury_enable | bool)
check_mode: no
- name: "Set variables (Debian 11)"

View File

@ -7,8 +7,7 @@
ansible.builtin.set_fact:
php_version: "7.3"
check_mode: no
when:
- not (php_sury_enable | bool)
when: not (php_sury_enable | bool)
- name: "Set variables (Debian 10)"
ansible.builtin.set_fact:

View File

@ -25,8 +25,8 @@ galaxy_info:
# alphanumeric characters. Maximum 20 tags per role.
dependencies:
- { role: evolix/ldap, ldap_schema: 'cn4evolix.ldif', when: postfix_packmail == True }
- { role: evolix/spamassasin, when: postfix_packmail == True }
- { role: evolix/clamav, when: postfix_packmail == True }
- { role: evolix/opendkim, when: postfix_packmail == True }
- { role: evolix/dovecot, when: postfix_packmail == True }
- { role: evolix/ldap, ldap_schema: 'cn4evolix.ldif', when: postfix_packmail | bool }
- { role: evolix/spamassasin, when: postfix_packmail | bool }
- { role: evolix/clamav, when: postfix_packmail | bool }
- { role: evolix/opendkim, when: postfix_packmail | bool }
- { role: evolix/dovecot, when: postfix_packmail | bool }

View File

@ -137,7 +137,7 @@
dest: "{{ varnish_config_file }}"
mode: "0644"
force: yes
when: "{{ varnish_update_config }}"
when: varnish_update_config | bool
loop: "{{ query('first_found', templates) }}"
vars:
templates:

View File

@ -36,7 +36,7 @@
chdir: "{{ nextcloud_webroot }}"
creates: "{{ nextcloud_home }}/config/config.php"
become_user: "{{ nextcloud_user }}"
when: (nc_status.stdout | from_json).installed == false
when: not ((nc_status.stdout | from_json).installed | bool)
tags:
- nextcloud