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

40 lines
1.2 KiB
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:
2017-08-29 15:44:39 +00:00
- { role: locale, tags: "locale" }
- { role: swap, tags: "swap" }
- { role: logwatch, tags: "logwatch" }
- { role: bash_screen_wall, tags: "bash_screen_wall" }
- { role: frappe_selinux, tags: "frappe_selinux" }
- { role: dns_caching, tags: "dns_caching" }
- { role: ntpd, tags: "ntpd" }
- { role: nginx, tags: "nginx" }
- { role: fail2ban, tags: "fail2ban" }
2017-08-29 06:51:06 +00:00
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