forked from marcomontes/ansible-rails
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsite.yml
30 lines (30 loc) · 863 Bytes
/
site.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Install python and aptitude on the target machines (apt-get install python aptitude)
# Copy ssh public key to machines (ssh-copy-id user@host)
---
- name: Install Rails Server
hosts: webservers
# After initial provisioning, use deploy instead of root
remote_user: root
# remote_user: deploy
# become: yes
# become_method: sudo
gather_facts: no # don't gather facts because /usr/bin/python isn't set
pre_tasks:
- name: apt-get update
raw: apt-get update -qq
- name: install python 2.7 and aptitude
raw: apt-get install -qq python2.7 aptitude
- name: set python 2.7 as default
raw: update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1
roles:
- common
- deploy-user
- mysql
- nginx
- certbot
- ruby
- rails
- monit
- memcached
- redis
- elasticsearch