2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-10 17:24:41 +00:00
bench/playbooks/production/install.yml

40 lines
982 B
YAML
Raw Normal View History

---
# Install the common pre-requisites for the setting up bench
- include: ../develop/install.yml
2017-08-29 06:51:06 +00:00
#install production pre-requisites
- name: Apply basic roles
hosts: localhost
become: yes
become_user: root
vars:
- nginx_conf_file: files/nginx.conf
2017-08-29 06:51:06 +00:00
roles:
- locale
- swap
- logwatch
- bash_screen_wall
- frappe_selinux
- dns_caching
- ntpd
- nginx
- fail2ban
tasks:
- name: Set hostname
hostname: name='{{ hostname }}'
when: hostname is defined
- name: Start NTPD
service: name=ntpd state=started
when: ansible_distribution == 'CentOS'
2017-08-29 06:51:06 +00:00
- name: Start NTPD
service: name=ntp state=started
when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'
- include: includes/setup_inputrc.yml
# Setup Bench for production environment
- include: includes/setup_bench_production.yml
2016-06-28 06:41:06 +00:00
when: not run_travis