fix more Ansible syntax

This commit is contained in:
Jérémy Lecour 2021-05-09 23:20:15 +02:00 committed by Jérémy Lecour
parent 2ed77c60f0
commit 3c9be8d913
4 changed files with 7 additions and 7 deletions

View File

@ -130,7 +130,7 @@
state: link
force: yes
notify: reload apache
when: apache_evolinux_default_enabled
when: apache_evolinux_default_enabled | bool
tags:
- apache
@ -205,6 +205,6 @@
- apache
- include: munin.yml
when: apache_munin_include
when: apache_munin_include | bool
tags:
- apache

View File

@ -56,7 +56,7 @@
- name: SSH configuration
include: ssh.yml
when: evolinux_ssh_include
when: evolinux_ssh_include | bool
### disabled because of a memory leak
# - name: Create evolinux users

View File

@ -51,7 +51,7 @@
regexp: '^AcceptEnv'
replace: "#AcceptEnv"
notify: reload sshd
when: evolinux_ssh_disable_acceptenv
when: evolinux_ssh_disable_acceptenv | bool
- name: Set log level to verbose (for Debian >= 9)
replace:
@ -66,7 +66,7 @@
changed_when: False
register: logname
check_mode: no
when: evolinux_ssh_allow_current_user
when: evolinux_ssh_allow_current_user | bool
# we must double-escape caracters, because python
- name: verify AllowUsers directive
@ -75,7 +75,7 @@
changed_when: False
register: grep_allowusers_ssh
check_mode: no
when: evolinux_ssh_allow_current_user
when: evolinux_ssh_allow_current_user | bool
- name: "Add AllowUsers sshd directive for current user"
lineinfile:

View File

@ -43,7 +43,7 @@
name: percona-release
state: latest
register: percona__apt_config_deb
when: percona__apt_config_package_installed
when: percona__apt_config_package_installed | bool
- name: APT cache is up-to-date
apt: