Change "|changed" with "is changed"

This commit is contained in:
Jérémy Lecour 2019-12-31 15:34:48 +01:00 committed by Jérémy Lecour
parent eded11f88f
commit 27e217467e
13 changed files with 14 additions and 14 deletions

View File

@ -40,6 +40,6 @@
- name: Apt update
apt:
update_cache: yes
when: apt_backports_list | changed or apt_backports_config | changed
when: apt_backports_list is changed or apt_backports_config is changed
tags:
- apt

View File

@ -27,6 +27,6 @@
- name: Apt update
apt:
update_cache: yes
when: apt_basic_list | changed
when: apt_basic_list is changed
tags:
- apt

View File

@ -28,6 +28,6 @@
- name: Apt update
apt:
update_cache: yes
when: apt_evolix_public | changed
when: apt_evolix_public is changed
tags:
- apt

View File

@ -18,6 +18,6 @@
- name: update apt
apt:
update_cache: yes
when: docker_apt_preferences | changed
when: docker_apt_preferences is changed
tags:
- packages

View File

@ -22,7 +22,7 @@
- name: Reconfigure locales
command: /usr/sbin/locale-gen
when: evolinux_system_locales and default_locales | changed
when: evolinux_system_locales and default_locales is changed
- name: Setting default timezone
timezone:

View File

@ -21,7 +21,7 @@
- name: update apt
apt:
update_cache: yes
when: haproxy_apt_preferences | changed
when: haproxy_apt_preferences is changed
tags:
- haproxy
- packages

View File

@ -36,7 +36,7 @@
failed_when: "'starting IPTables rules is now finish : OK' not in minifirewall_init_restart.stdout"
changed_when: "'starting IPTables rules is now finish : OK' in minifirewall_init_restart.stdout"
when:
- minifirewall_tail_template | changed
- minifirewall_tail_template is changed
- minifirewall_restart_if_needed
- name: restart minifirewall (noop)

View File

@ -66,7 +66,7 @@
- name: APT cache is up-to-date
apt:
update_cache: yes
when: mysql_apt_config_deb | changed
when: mysql_apt_config_deb is changed
- name: Install MySQL packages
apt:

View File

@ -39,7 +39,7 @@
with_items:
- { option: 'user', value: 'mysqladmin' }
- { option: 'password', value: '{{ mysql_admin_password.stdout }}' }
when: create_mysqladmin_user | changed
when: create_mysqladmin_user is changed
tags:
- mysql
@ -76,7 +76,7 @@
- [ { option: 'user', value: 'debian-sys-maint' },
{ option: 'password', value: '{{ mysql_debian_password.stdout }}' }
]
when: create_debian_user | changed
when: create_debian_user is changed
tags:
- mysql

View File

@ -21,7 +21,7 @@
- name: update apt
apt:
update_cache: yes
when: nginx_apt_preferences | changed
when: nginx_apt_preferences is changed
tags:
- nginx
- packages

View File

@ -39,7 +39,7 @@
- name: APT cache is up-to-date
apt:
update_cache: yes
when: percona__apt_config_deb | changed
when: percona__apt_config_deb is changed
- include: xtrabackup.yml
when: percona__install_xtrabackup

View File

@ -8,7 +8,7 @@
- name: APT cache is up-to-date
apt:
update_cache: yes
# when: percona__release_enable_tools | changed
# when: percona__release_enable_tools is changed
- name: Percona XtraBackup package is installed
apt:

View File

@ -37,7 +37,7 @@
- name: Run newaliases
command: newaliases
when: tomcat_instance_mail_alias | changed
when: tomcat_instance_mail_alias is changed
- name: Enable sudo right
lineinfile: