mirror of
https://github.com/frappe/bench.git
synced 2024-11-13 16:56:33 +00:00
changed method to set mysql root password
This commit is contained in:
parent
7ccba5a4e3
commit
5871354e16
@ -19,5 +19,5 @@
|
|||||||
when: ansible_distribution == 'MacOSX'
|
when: ansible_distribution == 'MacOSX'
|
||||||
|
|
||||||
- name: Set /tmp/.bench folder perms
|
- name: Set /tmp/.bench folder perms
|
||||||
command: 'chown -R {{ frappe_user }}:{{ frappe_user }} {{ repo_path }}'
|
command: 'chown -R {{ frappe_user }}:{{ frappe_user }} {{ repo_path }}'
|
||||||
when: ansible_distribution == 'Ubuntu' or ansible_distribution == 'CentOS' or ansible_distribution == 'Debian'
|
when: ansible_distribution == 'Ubuntu' or ansible_distribution == 'CentOS' or ansible_distribution == 'Debian'
|
@ -4,22 +4,6 @@
|
|||||||
become: yes
|
become: yes
|
||||||
become_user: root
|
become_user: root
|
||||||
|
|
||||||
- name: Set root Password
|
|
||||||
mysql_user:
|
|
||||||
name: root
|
|
||||||
host: localhost
|
|
||||||
password: '{{ mysql_root_password }}'
|
|
||||||
state: present
|
|
||||||
with_items:
|
|
||||||
- localhost
|
|
||||||
- 127.0.0.1
|
|
||||||
- ::1
|
|
||||||
become: yes
|
|
||||||
become_user: root
|
|
||||||
# when you have already defined mysql root password
|
|
||||||
ignore_errors: yes
|
|
||||||
when: mysql_root_password is defined
|
|
||||||
|
|
||||||
- name: Add configuration
|
- name: Add configuration
|
||||||
template: src={{ mysql_config_template }} dest={{ mysql_conf_dir }}/frappe.cnf owner=root mode=0644
|
template: src={{ mysql_config_template }} dest={{ mysql_conf_dir }}/frappe.cnf owner=root mode=0644
|
||||||
become: yes
|
become: yes
|
||||||
@ -31,11 +15,11 @@
|
|||||||
become_user: root
|
become_user: root
|
||||||
when: ansible_os_family == 'RedHat' or ansible_os_family == 'Debian'
|
when: ansible_os_family == 'RedHat' or ansible_os_family == 'Debian'
|
||||||
|
|
||||||
# - name: Set root password on CentOS
|
- name: Set root Password
|
||||||
# command: mysqladmin -u root password '{{ mysql_root_password }}'
|
command: mysqladmin -u root password {{ mysql_root_password }}
|
||||||
# become: yes
|
become: yes
|
||||||
# become_user: root
|
become_user: root
|
||||||
# when: mysql_root_password is defined and ansible_distribution == 'CentOS'
|
when: mysql_root_password is defined
|
||||||
|
|
||||||
- name: add launchagents folder mac
|
- name: add launchagents folder mac
|
||||||
file: path=~/Library/LaunchAgents state=directory
|
file: path=~/Library/LaunchAgents state=directory
|
||||||
|
2
playbooks/production/includes/setup_prod_env.yml
Normal file → Executable file
2
playbooks/production/includes/setup_prod_env.yml
Normal file → Executable file
@ -74,7 +74,7 @@
|
|||||||
- name: Reload the nginx service
|
- name: Reload the nginx service
|
||||||
service:
|
service:
|
||||||
name: nginx
|
name: nginx
|
||||||
state: reloaded
|
state: restarted
|
||||||
become: yes
|
become: yes
|
||||||
become_user: root
|
become_user: root
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user