Commit ce0dfa8e authored by Chris Croome's avatar Chris Croome

trailing white spacve removed

parent 766e5430
......@@ -38,17 +38,17 @@
# Node.js version
# https://discuss.erpnext.com/t/which-version-of-node-js-should-be-used/43428
nodejs_version: 8
# ERPNext settings
# ERPNext settings
# optional erpnext branch, from here https://github.com/frappe/erpnext/branches
#erpnext_branch: develop
# optional frappe bench version, use a branch, tag or release from here https://github.com/frappe/bench
# optional frappe bench version, use a branch, tag or release from here https://github.com/frappe/bench
#erpnext_bench_version: 4.1
# optional frappe branch, from here https://github.com/frappe/frappe/branches
#erpnext_frappe_branch: develop
erpnext_frappe_user: erpnext
erpnext_frappe_home: "/home/{{ erpnext_frappe_user }}"
# Note that the official installer uses "{{ erpnext_home }}/.bench", for erpnext_bench_repo_path, see
# https://github.com/frappe/bench/blob/master/playbooks/site.yml#L43
# https://github.com/frappe/bench/blob/master/playbooks/site.yml#L43
erpnext_bench_repo_path: "{{ erpnext_frappe_home }}/.bench"
#erpnext_bench_repo_path: "{{ erpnext_frappe_home }}/bench-repo"
erpnext_bench_path: "{{ erpnext_frappe_home }}/frappe-bench"
......
......@@ -11,9 +11,9 @@
# - erpnext
# The things in these lists are included below:
# https://github.com/frappe/bench/blob/master/playbooks/install.py#L17
# https://github.com/frappe/bench/blob/master/playbooks/install.py#L17
# https://github.com/frappe/bench/blob/master/playbooks/roles/wkhtmltopdf/tasks/main.yml#L14
#
#
# Some or all the things in this list should perhaps be added:
# https://github.com/frappe/bench/blob/master/playbooks/roles/common/tasks/debian_family.yml
- name: Packages installed
......@@ -55,22 +55,22 @@
# https://github.com/frappe/bench#2-install-bench
# https://github.com/frappe/bench/releases
- name: "version {{ erpnext_bench_version }} of bench repo cloned"
- name: "version {{ erpnext_bench_version }} of bench repo cloned"
git:
repo: https://github.com/frappe/bench
dest: "{{ erpnext_bench_repo_path }}"
dest: "{{ erpnext_bench_repo_path }}"
version: "{{ erpnext_bench_version }}"
update: no
when: erpnext_bench_version is defined and erpnext_bench_version != ""
tags:
- erpnext
- name: bench repo cloned
- name: bench repo cloned
git:
repo: https://github.com/frappe/bench
dest: "{{ erpnext_bench_repo_path }}"
dest: "{{ erpnext_bench_repo_path }}"
update: no
when: erpnext_bench_version is not defined or erpnext_bench_version == ""
when: erpnext_bench_version is not defined or erpnext_bench_version == ""
tags:
- erpnext
......@@ -78,11 +78,11 @@
file:
path: "{{ erpnext_bench_repo_path }}"
state: directory
owner: "{{ erpnext_frappe_user }}"
owner: "{{ erpnext_frappe_user }}"
group: "{{ erpnext_frappe_user }}"
recurse: yes
tags:
- erpnext
- erpnext
- name: "Bench bin ~/.local/bin and ~/bin in PATH for {{ erpnext_frappe_user }} user"
lineinfile:
......@@ -91,12 +91,12 @@
state: present
- name: pip install bench
command: "pip install --user -e {{ erpnext_bench_repo_path }}"
command: "pip install --user -e {{ erpnext_bench_repo_path }}"
args:
chdir: "{{ erpnext_frappe_home }}"
creates: "{{ erpnext_frappe_home }}/.local"
become: yes
become_user: "{{ erpnext_frappe_user }}"
become_user: "{{ erpnext_frappe_user }}"
register: erpnext_pip_install_bench
tags:
- erpnext
......@@ -104,7 +104,7 @@
- name: "frappe-bench initialised using branch {{ erpnext_frappe_branch }}"
command: "{{ erpnext_frappe_home }}/.local/bin/bench init frappe-bench --frappe-branch {{ erpnext_frappe_branch }}"
args:
chdir: "{{ erpnext_frappe_home }}"
chdir: "{{ erpnext_frappe_home }}"
creates: "{{ erpnext_frappe_home }}/frappe-bench"
become: yes
become_user: "{{ erpnext_frappe_user }}"
......@@ -116,7 +116,7 @@
- name: frappe-bench initialised
command: "{{ erpnext_frappe_home }}/.local/bin/bench init frappe-bench"
args:
chdir: "{{ erpnext_frappe_home }}"
chdir: "{{ erpnext_frappe_home }}"
creates: "{{ erpnext_frappe_home }}/frappe-bench"
become: yes
become_user: "{{ erpnext_frappe_user }}"
......@@ -181,7 +181,7 @@
register: erpnext_admin_password_gen
tags:
- erpnext
- name: Fact set for the admin pasword for ERPNext
set_fact:
erpnext_admin_password: "{{ erpnext_admin_password_gen.stdout }}"
......@@ -227,7 +227,7 @@
- name: "Download ERPNext branch {{ erpnext_branch }}"
shell: "{{ erpnext_frappe_home }}/.local/bin/bench get-app --branch {{ erpnext_branch }} erpnext https://github.com/frappe/erpnext"
args:
chdir: "{{ erpnext_bench_path }}"
chdir: "{{ erpnext_bench_path }}"
creates: "{{ erpnext_bench_path }}/apps/erpnext"
become: yes
become_user: "{{ erpnext_frappe_user }}"
......@@ -236,10 +236,10 @@
tags:
- erpnext
- name: Download ERPNext
- name: Download ERPNext
shell: "{{ erpnext_frappe_home }}/.local/bin/bench get-app erpnext https://github.com/frappe/erpnext"
args:
chdir: "{{ erpnext_bench_path }}"
chdir: "{{ erpnext_bench_path }}"
creates: "{{ erpnext_bench_path }}/apps/erpnext"
become: yes
become_user: "{{ erpnext_frappe_user }}"
......@@ -251,7 +251,7 @@
- name: Install ERPNext
shell: "{{ erpnext_frappe_home }}/.local/bin/bench --site {{ common_name }} install-app erpnext"
args:
chdir: "{{ erpnext_bench_path }}"
chdir: "{{ erpnext_bench_path }}"
creates: "{{ erpnext_bench_path }}/apps/erpnext/erpnext/accounts/general_ledger.pyc"
become: yes
become_user: "{{ erpnext_frappe_user }}"
......@@ -316,7 +316,7 @@
tags:
- erpnext
- name: Set the Nginx port to 443
- name: Set the Nginx port to 443
shell: "{{ erpnext_frappe_home }}/.local/bin/bench set-config nginx_port 443"
args:
chdir: "{{ erpnext_bench_path }}"
......@@ -378,7 +378,7 @@
- erpnext
- debug:
msg: "The site should now be up and running, see https://{{ common_name }}/ so login as Administrator {{ erpnext_admin_password }} (this is saved to /root/.erpnext.admin)"
msg: "The site should now be up and running, see https://{{ common_name }}/ so login as Administrator {{ erpnext_admin_password }} (this is saved to /root/.erpnext.admin)"
when: erpnext_bench_new_site.changed and erpnext_sites_common_name_stat.stat.exists == False
tags:
- erpnext
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment