Browse Source

Change "|search" with "is search"

pull/95/head
Jérémy Lecour 1 year ago
committed by Jérémy Lecour
parent
commit
eded11f88f
  1. 2
      elasticsearch/tasks/additional_scripts.yml
  2. 2
      etc-git/tasks/repository.yml
  3. 2
      evocheck/tasks/install_local.yml
  4. 2
      generate-ldif/tasks/main.yml
  5. 2
      munin/tasks/main.yml
  6. 8
      mysql-oracle/tasks/utils.yml
  7. 8
      mysql/tasks/utils.yml
  8. 2
      nagios-nrpe/tasks/main.yml
  9. 2
      webapps/evoadmin-web/tasks/user.yml

2
elasticsearch/tasks/additional_scripts.yml

@ -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:

2
etc-git/tasks/repository.yml

@ -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 ."

2
evocheck/tasks/install_local.yml

@ -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

2
generate-ldif/tasks/main.yml

@ -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:

2
munin/tasks/main.yml

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

8
mysql-oracle/tasks/utils.yml

@ -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:

8
mysql/tasks/utils.yml

@ -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:

2
nagios-nrpe/tasks/main.yml

@ -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

2
webapps/evoadmin-web/tasks/user.yml

@ -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:

Loading…
Cancel
Save