mirror of
https://github.com/frappe/bench.git
synced 2025-01-24 23:48:24 +00:00
[fix] conditional variable fix
This commit is contained in:
parent
af16ee3eec
commit
e005e618f4
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user