2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-11 15:51:03 +00:00

[fix] conditional variable fix

This commit is contained in:
Saurabh 2017-09-18 16:44:59 +05:30
parent af16ee3eec
commit e005e618f4

View File

@ -27,28 +27,28 @@
with_items: with_items:
- 127.0.0.1 - 127.0.0.1
- ::1 - ::1
when: not run_travis when: run_travis is not defined
- name: Reload privilege tables - name: Reload privilege tables
command: 'mysql -ne "{{ item }}"' command: 'mysql -ne "{{ item }}"'
with_items: with_items:
- FLUSH PRIVILEGES - FLUSH PRIVILEGES
changed_when: False changed_when: False
when: not run_travis when: run_travis is not defined
- name: Remove anonymous users - name: Remove anonymous users
command: 'mysql -ne "{{ item }}"' command: 'mysql -ne "{{ item }}"'
with_items: with_items:
- DELETE FROM mysql.user WHERE User='' - DELETE FROM mysql.user WHERE User=''
changed_when: False changed_when: False
when: not run_travis when: run_travis is not defined
- name: Disallow root login remotely - name: Disallow root login remotely
command: 'mysql -ne "{{ item }}"' command: 'mysql -ne "{{ item }}"'
with_items: with_items:
- DELETE FROM mysql.user WHERE User='root' AND Host NOT IN ('localhost', '127.0.0.1', '::1') - DELETE FROM mysql.user WHERE User='root' AND Host NOT IN ('localhost', '127.0.0.1', '::1')
changed_when: False changed_when: False
when: not run_travis when: run_travis is not defined
- name: Remove test database and access to it - name: Remove test database and access to it
command: 'mysql -ne "{{ item }}"' command: 'mysql -ne "{{ item }}"'
@ -56,14 +56,14 @@
- DROP DATABASE if exists test - DROP DATABASE if exists test
- DELETE FROM mysql.db WHERE Db='test' OR Db='test\\_%' - DELETE FROM mysql.db WHERE Db='test' OR Db='test\\_%'
changed_when: False changed_when: False
when: not run_travis when: run_travis is not defined
- name: Reload privilege tables - name: Reload privilege tables
command: 'mysql -ne "{{ item }}"' command: 'mysql -ne "{{ item }}"'
with_items: with_items:
- FLUSH PRIVILEGES - FLUSH PRIVILEGES
changed_when: False changed_when: False
when: not run_travis when: run_travis is not defined
- name: add launchagents folder mac - name: add launchagents folder mac
file: path=~/Library/LaunchAgents state=directory file: path=~/Library/LaunchAgents state=directory