mirror of
https://github.com/frappe/bench.git
synced 2025-01-10 00:37:51 +00:00
add name to task and fix typo for role
This commit is contained in:
parent
a07c71654b
commit
8139bccb0e
@ -1,7 +1,8 @@
|
|||||||
---
|
---
|
||||||
- include: setup_essentials.yml
|
- include: setup_essentials.yml
|
||||||
|
|
||||||
- hosts: localhost
|
- name: "Setup prerequisites, mariadb, wkhtmltopdf, nodejs and psutil"
|
||||||
|
hosts: localhost
|
||||||
become: yes
|
become: yes
|
||||||
become_user: root
|
become_user: root
|
||||||
vars:
|
vars:
|
||||||
@ -14,82 +15,9 @@
|
|||||||
- mariadb
|
- mariadb
|
||||||
- wkhtmltopdf
|
- wkhtmltopdf
|
||||||
- nodejs
|
- nodejs
|
||||||
- psutils
|
- psutil
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
# setup frappe-bench
|
|
||||||
- include: includes/setup_bench.yml
|
|
||||||
when: not run_travis and not without_bench_setup
|
|
||||||
|
|
||||||
<<<<<<< 7a7c61105c87ac4cccea9c39c23691b0a61f9836
|
|
||||||
- name: development tools package
|
|
||||||
yum: name="@Development tools" state=present
|
|
||||||
become: yes
|
|
||||||
become_user: root
|
|
||||||
|
|
||||||
- name: install prerequisites
|
|
||||||
yum: pkg={{ item }} state=present
|
|
||||||
with_items:
|
|
||||||
# basic installs
|
|
||||||
- redis
|
|
||||||
|
|
||||||
# for mariadb
|
|
||||||
- libselinux-python
|
|
||||||
- mysql-devel
|
|
||||||
- mysql-libs
|
|
||||||
|
|
||||||
# for wkhtmltopdf
|
|
||||||
- libXrender
|
|
||||||
- libXext
|
|
||||||
- xorg-x11-fonts-75dpi
|
|
||||||
- xorg-x11-fonts-Type1
|
|
||||||
|
|
||||||
# for Pillow
|
|
||||||
- libjpeg-devel
|
|
||||||
- zlib-devel
|
|
||||||
- libzip-devel
|
|
||||||
- freetype-devel
|
|
||||||
- lcms2-devel
|
|
||||||
- libwebp-devel
|
|
||||||
- libtiff-devel
|
|
||||||
- tcl-devel
|
|
||||||
- tk-devel
|
|
||||||
|
|
||||||
# Python LDAP
|
|
||||||
- openldap-devel
|
|
||||||
|
|
||||||
become: yes
|
|
||||||
become_user: root
|
|
||||||
|
|
||||||
- name: Import Node source RPM key
|
|
||||||
rpm_key:
|
|
||||||
key: https://rpm.nodesource.com/pub/el/NODESOURCE-GPG-SIGNING-KEY-EL
|
|
||||||
state: present
|
|
||||||
become: yes
|
|
||||||
become_user: root
|
|
||||||
|
|
||||||
- name: Add Node Repo
|
|
||||||
yum:
|
|
||||||
name: 'https://rpm.nodesource.com/pub_6.x/el/{{ ansible_distribution_major_version }}/{{ ansible_architecture }}/nodesource-release-el{{ ansible_distribution_major_version }}-1.noarch.rpm'
|
|
||||||
state: present
|
|
||||||
become: yes
|
|
||||||
become_user: root
|
|
||||||
|
|
||||||
- name: Install nodejs
|
|
||||||
yum:
|
|
||||||
name: nodejs
|
|
||||||
state: present
|
|
||||||
become: yes
|
|
||||||
become_user: root
|
|
||||||
|
|
||||||
# install MariaDB
|
|
||||||
- include: includes/mariadb_centos.yml
|
|
||||||
|
|
||||||
# install WKHTMLtoPDF
|
|
||||||
- include: includes/wkhtmltopdf.yml
|
|
||||||
|
|
||||||
# setup MariaDB
|
|
||||||
- include: includes/setup_mariadb.yml
|
|
||||||
|
|
||||||
# setup frappe-bench
|
# setup frappe-bench
|
||||||
- include: includes/setup_bench.yml
|
- include: includes/setup_bench.yml
|
||||||
when: not run_travis and not without_bench_setup
|
when: not run_travis and not without_bench_setup
|
||||||
@ -97,9 +25,3 @@
|
|||||||
# setup development environment
|
# setup development environment
|
||||||
- include: includes/setup_dev_env.yml
|
- include: includes/setup_dev_env.yml
|
||||||
when: not run_travis and not production
|
when: not run_travis and not production
|
||||||
|
|
||||||
=======
|
|
||||||
# setup development environment
|
|
||||||
- include: includes/setup_dev_env.yml
|
|
||||||
when: not run_travis and not production
|
|
||||||
>>>>>>> create roles to install pre-requisites
|
|
||||||
|
@ -1,35 +1,30 @@
|
|||||||
---
|
---
|
||||||
- include: setup_essentials.yml
|
- include: setup_essentials.yml
|
||||||
|
|
||||||
- hosts: localhost
|
- name: "Setup prerequisites, mariadb, wkhtmltopdf, nodejs and psutil"
|
||||||
|
hosts: localhost
|
||||||
become: yes
|
become: yes
|
||||||
become_user: root
|
become_user: root
|
||||||
vars:
|
vars:
|
||||||
bench_repo_path: "/home/{{ ansible_user_id }}/.bench"
|
bench_repo_path: "/home/{{ ansible_user_id }}/.bench"
|
||||||
bench_path: "/home/{{ ansible_user_id }}/frappe-bench"
|
bench_path: "/home/{{ ansible_user_id }}/frappe-bench"
|
||||||
mysql_conf_tpl: ../files/mariadb_config.cnf
|
mysql_conf_tpl: ../files/mariadb_config.cnf
|
||||||
mysql_conf_dir: /etc/mysql/conf.d/
|
mysql_secure_installation: True
|
||||||
roles:
|
roles:
|
||||||
- prerequisites
|
- prerequisites
|
||||||
- mariadb
|
- mariadb
|
||||||
- wkhtmltopdf
|
- wkhtmltopdf
|
||||||
- nodejs
|
- nodejs
|
||||||
- psutils
|
- psutil
|
||||||
tasks:
|
tasks:
|
||||||
- debug:
|
- debug:
|
||||||
var: run_travis
|
var: run_travis
|
||||||
|
|
||||||
# setup frappe-bench
|
# setup frappe-bench
|
||||||
- include: includes/setup_bench.yml
|
- include: includes/setup_bench.yml
|
||||||
when: not run_travis
|
when: not run_travis
|
||||||
|
|
||||||
<<<<<<< 7a7c61105c87ac4cccea9c39c23691b0a61f9836
|
|
||||||
# setup development environment
|
# setup development environment
|
||||||
- include: includes/setup_dev_env.yml
|
- include: includes/setup_dev_env.yml
|
||||||
when: not production and not run_travis
|
when: not production and not run_travis
|
||||||
|
|
||||||
=======
|
|
||||||
# setup development environment
|
|
||||||
- include: includes/setup_dev_env.yml
|
|
||||||
when: not production and not run_travis
|
|
||||||
>>>>>>> create roles to install pre-requisites
|
|
||||||
|
@ -1,28 +1,29 @@
|
|||||||
---
|
---
|
||||||
- include: setup_essentials.yml
|
- include: setup_essentials.yml
|
||||||
|
|
||||||
- hosts: localhost
|
- name: "Setup prerequisites, mariadb, wkhtmltopdf, nodejs and psutil"
|
||||||
|
hosts: localhost
|
||||||
become: yes
|
become: yes
|
||||||
become_user: root
|
become_user: root
|
||||||
vars:
|
vars:
|
||||||
bench_repo_path: "/home/{{ ansible_user_id }}/.bench"
|
bench_repo_path: "/home/{{ ansible_user_id }}/.bench"
|
||||||
bench_path: "/home/{{ ansible_user_id }}/frappe-bench"
|
bench_path: "/home/{{ ansible_user_id }}/frappe-bench"
|
||||||
mysql_conf_tpl: ../files/mariadb_config.cnf
|
mysql_conf_tpl: ../files/mariadb_config.cnf
|
||||||
mysql_conf_dir: /etc/mysql/conf.d/
|
mysql_secure_installation: True
|
||||||
roles:
|
roles:
|
||||||
- prerequisites
|
- prerequisites
|
||||||
- mariadb
|
- mariadb
|
||||||
- wkhtmltopdf
|
- wkhtmltopdf
|
||||||
- nodejs
|
- nodejs
|
||||||
- psutils
|
- psutil
|
||||||
tasks:
|
tasks:
|
||||||
- debug:
|
- debug:
|
||||||
var: run_travis
|
var: run_travis
|
||||||
|
|
||||||
# setup frappe-bench
|
# setup frappe-bench
|
||||||
- include: includes/setup_bench.yml
|
- include: includes/setup_bench.yml
|
||||||
when: not without_bench_setup and not run_travis
|
when: not without_bench_setup and not run_travis
|
||||||
|
|
||||||
# setup development environment
|
# setup development environment
|
||||||
- include: includes/setup_dev_env.yml
|
- include: includes/setup_dev_env.yml
|
||||||
when: not production and not run_travis and not without_bench_setup
|
when: not production and not run_travis and not without_bench_setup
|
||||||
|
Loading…
Reference in New Issue
Block a user