Rename host
parent
48d40a58b2
commit
f6bca513fb
2
hosts
2
hosts
|
@ -1,2 +1,2 @@
|
||||||
[production]
|
[production]
|
||||||
cce_prod ansible_host=cce.ebookfoundation.org ansible_user=ubuntu
|
cce_frontend_prod ansible_host=cce.ebookfoundation.org ansible_user=ubuntu
|
|
@ -3,7 +3,7 @@
|
||||||
- name: Add universe repository
|
- name: Add universe repository
|
||||||
become: true
|
become: true
|
||||||
apt_repository:
|
apt_repository:
|
||||||
repo: universe
|
repo: 'deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe'
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Add certbot repository
|
- name: Add certbot repository
|
||||||
|
|
|
@ -1,17 +1,26 @@
|
||||||
- hosts: cce_prod
|
- hosts: cce_frontend_prod
|
||||||
tasks:
|
tasks:
|
||||||
- name: Add python repository
|
# NOTE: The folloqing tasks error and must be fixed. This is due to issues installing Python 3.7 from this PPA.
|
||||||
become: true
|
# It may be possible that Python 3.7 will have to be manually installed first
|
||||||
apt_repository: repo='ppa:deadsnakes/ppa' state=present
|
# - name: Add python repository
|
||||||
- name: Install python3.7 and pip
|
# become: true
|
||||||
become: true
|
# apt_repository:
|
||||||
apt:
|
# repo: ppa:deadsnakes/ppa
|
||||||
name: "{{ item }}"
|
# state: present
|
||||||
update: true
|
# - name: Install python3.7 and pip
|
||||||
update_cache: true
|
# become: true
|
||||||
with_items:
|
# apt:
|
||||||
- 'python3.7'
|
# name: "{{ item }}"
|
||||||
- 'python3-pip'
|
# update: true
|
||||||
|
# update_cache: true
|
||||||
- include_role:
|
# with_items:
|
||||||
name: cce_prod
|
# - 'python3.7'
|
||||||
|
# - 'python3-pip'
|
||||||
|
# - name: Add python repository and install
|
||||||
|
# become: true
|
||||||
|
# raw: bash -c "add-apt-repository ppa:deadsnakes/ppa"
|
||||||
|
# register: output
|
||||||
|
# changed_when: output.stdout != ""
|
||||||
|
|
||||||
|
- include_role:
|
||||||
|
name: cce_frontend_prod
|
Loading…
Reference in New Issue