diff --git a/hosts b/hosts index 4fde8f5..eb93b80 100644 --- a/hosts +++ b/hosts @@ -1,2 +1,2 @@ [production] -cce_prod ansible_host=cce.ebookfoundation.org ansible_user=ubuntu \ No newline at end of file +cce_frontend_prod ansible_host=cce.ebookfoundation.org ansible_user=ubuntu \ No newline at end of file diff --git a/roles/cce_frontend_prod/tasks/main.yml b/roles/cce_frontend_prod/tasks/main.yml index f2b9cce..8118625 100644 --- a/roles/cce_frontend_prod/tasks/main.yml +++ b/roles/cce_frontend_prod/tasks/main.yml @@ -3,7 +3,7 @@ - name: Add universe repository become: true apt_repository: - repo: universe + repo: 'deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe' state: present - name: Add certbot repository diff --git a/setup-frontend-prod.yml b/setup-frontend-prod.yml index 89e5189..c9a4044 100644 --- a/setup-frontend-prod.yml +++ b/setup-frontend-prod.yml @@ -1,17 +1,26 @@ -- hosts: cce_prod +- hosts: cce_frontend_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 \ No newline at end of file +# NOTE: The folloqing tasks error and must be fixed. This is due to issues installing Python 3.7 from this PPA. +# It may be possible that Python 3.7 will have to be manually installed first + # - 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' + # - 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 \ No newline at end of file