Add setup-prod.yml, update hosts and tasks

master
Dylan DiGeronimo 2020-01-15 20:21:11 -05:00
parent 6ee3de58af
commit f59754bca6
3 changed files with 20 additions and 6 deletions

2
hosts
View File

@ -1,2 +1,2 @@
[production]
cce-prod ansible_host=cce.ebookfoundation.org ansible_user=ubuntu
cce_prod ansible_host=cce.ebookfoundation.org ansible_user=ubuntu

View File

@ -95,11 +95,9 @@
group: "{{ user_name }}"
mode: 0755
# TODO: Enable Nginx
# TODO: Configure HTTPS cert w/ Certbot
# Configure HTTPS cert w/ Certbot
- name: Generate HTTPS cert
become: true
command: "certbot --nginx"
command: "certbot --nginx" # Does this command halt for [y/n] input?

View File

@ -1 +1,17 @@
an
- hosts: cce_prod
tasks:
- name: Add python repository
become: true
apt_repository: repo='ppa:deadsnakes/ppa' state=present
- name: Install python3.7 and pip
become: true
apt:
name: "{{ item }}"
update: true
update_cache: true
with_items:
- 'python3.7'
- 'python3-pip'
- include_role:
name: cce_prod