Fix ansible-lint violations
All checks were successful
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>
gitea/ansible-roles/pipeline/head This commit looks good
All checks were successful
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>
gitea/ansible-roles/pipeline/head This commit looks good
This commit is contained in:
parent
ee21973371
commit
70c93310f9
9 changed files with 13 additions and 16 deletions
|
@ -27,4 +27,4 @@ galaxy_info:
|
|||
|
||||
allow_duplicates: yes
|
||||
|
||||
dependencies: []
|
||||
dependencies: []
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
# - ansible_distribution_release == "bookworm"
|
||||
# - mongodb_version is version('5.0', '<')
|
||||
|
||||
- name: Add MongoDB repository
|
||||
- name: Add MongoDB repository
|
||||
ansible.builtin.template:
|
||||
src: mongodb.sources.j2
|
||||
dest: /etc/apt/sources.list.d/mongodb.sources
|
||||
|
|
|
@ -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)"
|
||||
|
|
|
@ -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)"
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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 }
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
- name: make sure a service Mailgraph is running
|
||||
ansible.builtin.systemd:
|
||||
name: mailgraph.service
|
||||
state: started
|
||||
state: started
|
||||
enabled: true
|
||||
|
||||
- name: create packmail main.cf
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue