Add setup-prod.yml, update hosts and tasks
parent
6ee3de58af
commit
f59754bca6
2
hosts
2
hosts
|
@ -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
|
|
@ -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?
|
|
@ -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
|
Loading…
Reference in New Issue