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

View file

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

View file

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

View file

@ -43,7 +43,7 @@
name: percona-release name: percona-release
state: latest state: latest
register: percona__apt_config_deb 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 - name: APT cache is up-to-date
apt: apt: