Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed playbook to be compatible with Mariadb 10.2 #543

Merged
merged 2 commits into from Jan 18, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions playbooks/develop/includes/setup_bench.yml
Expand Up @@ -12,6 +12,8 @@
- name: move /tmp/.bench if it exists
command: 'cp -R /tmp/.bench {{ bench_repo_path }}'
when: tmp_bench.stat.exists and not bench_repo_register.stat.exists
become: yes
become_user: frappe

- name: install bench
pip: name={{ bench_repo_path }} extra_args='-e'
Expand Down
16 changes: 16 additions & 0 deletions playbooks/develop/includes/setup_erpnext.yml
Expand Up @@ -14,11 +14,27 @@
stat: path="{{ bench_path }}/sites/site1.local"
register: site_folder

- name: Link mysql.sock file for MariaDB
file:
src: "/var/lib/mysql/mysql.sock"
dest: "/var/run/mysqld/mysqld.sock"
state: link
become: yes

- name: Link mysql.pid file for MariaDB
file:
src: "/var/lib/mysql/mysql.pid"
dest: "/var/run/mysqld/mysqld.pid"
state: link
become: yes

- name: create a new default site
command: bench new-site site1.local --admin-password {{ admin_password }} --mariadb-root-password {{ mysql_root_password }}
args:
chdir: "{{ bench_path }}"
when: not site_folder.stat.exists
become: yes
become_user: frappe

- name: install erpnext to default site
command: bench --site site1.local install-app erpnext
Expand Down