From e005e618f4d5531dd9abc9d18d385850702cf0ec Mon Sep 17 00:00:00 2001 From: Saurabh Date: Mon, 18 Sep 2017 16:44:59 +0530 Subject: [PATCH] [fix] conditional variable fix --- .../mariadb/tasks/mysql_secure_installation.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/playbooks/prerequisites/roles/mariadb/tasks/mysql_secure_installation.yml b/playbooks/prerequisites/roles/mariadb/tasks/mysql_secure_installation.yml index d1ba6c4f..df1e5d83 100644 --- a/playbooks/prerequisites/roles/mariadb/tasks/mysql_secure_installation.yml +++ b/playbooks/prerequisites/roles/mariadb/tasks/mysql_secure_installation.yml @@ -27,28 +27,28 @@ with_items: - 127.0.0.1 - ::1 - when: not run_travis + when: run_travis is not defined - name: Reload privilege tables command: 'mysql -ne "{{ item }}"' with_items: - FLUSH PRIVILEGES changed_when: False - when: not run_travis + when: run_travis is not defined - name: Remove anonymous users command: 'mysql -ne "{{ item }}"' with_items: - DELETE FROM mysql.user WHERE User='' changed_when: False - when: not run_travis + when: run_travis is not defined - name: Disallow root login remotely command: 'mysql -ne "{{ item }}"' with_items: - DELETE FROM mysql.user WHERE User='root' AND Host NOT IN ('localhost', '127.0.0.1', '::1') changed_when: False - when: not run_travis + when: run_travis is not defined - name: Remove test database and access to it command: 'mysql -ne "{{ item }}"' @@ -56,14 +56,14 @@ - DROP DATABASE if exists test - DELETE FROM mysql.db WHERE Db='test' OR Db='test\\_%' changed_when: False - when: not run_travis + when: run_travis is not defined - name: Reload privilege tables command: 'mysql -ne "{{ item }}"' with_items: - FLUSH PRIVILEGES changed_when: False - when: not run_travis + when: run_travis is not defined - name: add launchagents folder mac file: path=~/Library/LaunchAgents state=directory