Continued working on Ansible playbook
This commit is contained in:
parent
0ebd0d7ee5
commit
8d15711c0f
1 changed files with 21 additions and 2 deletions
|
|
@ -21,6 +21,8 @@
|
|||
- libssl-dev
|
||||
- libreadline-dev
|
||||
- zlib1g-dev
|
||||
- libbz2-dev
|
||||
- libpq-dev
|
||||
#- libcurl4-gnutls-dev
|
||||
#- ruby-bundler
|
||||
#- nodejs
|
||||
|
|
@ -53,6 +55,12 @@
|
|||
with_items:
|
||||
- nginx-extras
|
||||
- passenger
|
||||
- name: Enable Passenger in main nginx.conf
|
||||
lineinfile:
|
||||
dest: /etc/nginx/nginx.conf
|
||||
regexp: '# include /etc/nginx/passenger\.conf'
|
||||
line: 'include /etc/nginx/passenger.conf;'
|
||||
backrefs: yes
|
||||
|
||||
# Install newer Ruby version using rbenv
|
||||
- name: Get rbenv
|
||||
|
|
@ -75,9 +83,20 @@
|
|||
- name: Build Ruby version
|
||||
shell: sudo -iu debshots rbenv install -v {{ruby_version}} creates=/opt/debshots/.rbenv/versions/{{ruby_version}}
|
||||
|
||||
- name: Install certbot to get certificates from Let's Encrypt
|
||||
- name: Install certbot to get certificates from Lets Encrypt
|
||||
apt: name=certbot default_release=jessie-backports
|
||||
|
||||
- name: Install Bundler
|
||||
gem: name=bundler
|
||||
|
||||
- name: Install dependencies
|
||||
shell: sudo -iu debshots bundle
|
||||
|
||||
- name: Make sure that the public/ directory is readable by nginx
|
||||
file: path=/opt/debshots/public mode='go+rx'
|
||||
- name: Make sure that the config.ru is readable by nginx
|
||||
file: path=/opt/debshots/config.ru mode='go+r'
|
||||
|
||||
- name: Deploy nginx config
|
||||
copy:
|
||||
src: files/nginx.conf
|
||||
|
|
@ -85,5 +104,5 @@
|
|||
notify:
|
||||
restart nginx
|
||||
|
||||
- debug: msg="Please run 'certbot certonly --webroot -w /opt/debshots/public -d screenshots.debian.net'"
|
||||
# - debug: msg="Please run: certbot certonly --webroot -w /opt/debshots/public -d screenshots.debian.net"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue