Change "|search" with "is search"

This commit is contained in:
Jérémy Lecour 2019-12-31 15:32:40 +01:00 committed by Jérémy Lecour
parent e04d881988
commit eded11f88f
9 changed files with 15 additions and 15 deletions

View File

@ -2,7 +2,7 @@
- include_role:
name: evolix/remount-usr
when: elasticsearch_additional_scripts_dir | search ("/usr")
when: elasticsearch_additional_scripts_dir is search ("/usr")
- name: "{{ elasticsearch_additional_scripts_dir }} exists"
file:

View File

@ -2,7 +2,7 @@
- include_role:
name: evolix/remount-usr
when: repository_path | search ("/usr")
when: repository_path is search ("/usr")
- name: "{{ repository_path }} is versioned with git"
command: "git init ."

View File

@ -1,7 +1,7 @@
---
- include_role:
name: evolix/remount-usr
when: evocheck_bin_dir | search ("/usr")
when: evocheck_bin_dir is search ("/usr")
tags:
- evocheck

View File

@ -1,7 +1,7 @@
---
- include_role:
name: evolix/remount-usr
when: general_scripts_dir | search("/usr")
when: general_scripts_dir is search("/usr")
- name: "copy generateldif.sh"
template:

View File

@ -87,4 +87,4 @@
[swap]
user root
when: ansible_kernel | search("-grs-")
when: ansible_kernel is search("-grs-")

View File

@ -2,7 +2,7 @@
- include_role:
name: evolix/remount-usr
when: (mysql_scripts_dir or general_scripts_dir) | search ("/usr")
when: (mysql_scripts_dir or general_scripts_dir) is search ("/usr")
- name: Scripts directory exists
file:
@ -95,7 +95,7 @@
name: evolix/remount-usr
tags:
- mysql
when: (mysql_scripts_dir or general_scripts_dir) | search ("/usr")
when: (mysql_scripts_dir or general_scripts_dir) is search ("/usr")
- name: mysqltuner is installed
# copy:
@ -121,7 +121,7 @@
name: evolix/remount-usr
tags:
- mysql
when: (mysql_scripts_dir or general_scripts_dir) | search ("/usr")
when: (mysql_scripts_dir or general_scripts_dir) is search ("/usr")
- name: mysql-optimize.sh is installed
copy:
@ -192,7 +192,7 @@
- include_role:
name: evolix/remount-usr
when: (mysql_scripts_dir or general_scripts_dir) | search ("/usr")
when: (mysql_scripts_dir or general_scripts_dir) is search ("/usr")
- name: Install my-add.sh
copy:

View File

@ -2,7 +2,7 @@
- include_role:
name: evolix/remount-usr
when: (mysql_scripts_dir or general_scripts_dir) | search ("/usr")
when: (mysql_scripts_dir or general_scripts_dir) is search ("/usr")
- name: Ensure scripts directory exists
file:
@ -62,7 +62,7 @@
- include_role:
name: evolix/remount-usr
when: (mysql_scripts_dir or general_scripts_dir) | search ("/usr")
when: (mysql_scripts_dir or general_scripts_dir) is search ("/usr")
- name: Install mysqltuner
# copy:
@ -98,7 +98,7 @@
- include_role:
name: evolix/remount-usr
when: (mysql_scripts_dir or general_scripts_dir) | search ("/usr")
when: (mysql_scripts_dir or general_scripts_dir) is search ("/usr")
- name: Optimize script for MySQL
copy:
@ -162,7 +162,7 @@
- include_role:
name: evolix/remount-usr
when: (mysql_scripts_dir or general_scripts_dir) | search ("/usr")
when: (mysql_scripts_dir or general_scripts_dir) is search ("/usr")
- name: Install my-add.sh
copy:

View File

@ -46,7 +46,7 @@
- include_role:
name: evolix/remount-usr
when: nagios_plugins_directory | search ("/usr")
when: nagios_plugins_directory is search ("/usr")
tags:
- nagios-nrpe
- nagios-plugins

View File

@ -80,7 +80,7 @@
- include_role:
name: evolix/remount-usr
when: evoadmin_scripts_dir | search ("/usr")
when: evoadmin_scripts_dir is search ("/usr")
- name: "Create {{ evoadmin_scripts_dir }}"
file: