I am using ubuntu 16.04 for above both cases. Following is the error in text copied from console :
E: There were unauthenticated packages and -y was used without --allow-unauthenticated.TASK [nginx : Install the nginx package] ***************************************
fatal: [localhost]: FAILED! => {ācache_update_timeā: 1571645302, ācache_updatedā: true, āchangedā: false, āfailedā: true, āmsgā: āā/usr/bin/apt-get -y -o āDpkg::Options::=āforce-confdefā -o āDpkg::Options::=āforce-confoldā install ānginxāā failed: E: There were unauthenticated packages and -y was used without --allow-unauthenticated\nā, ārcā: 100, āstderrā: āE: There were unauthenticated packages and -y was used without --allow-unauthenticated\nā, āstderr_linesā: [āE: There were unauthenticated packages and -y was used without --allow-unauthenticatedā], āstdoutā: āReading package listsā¦\nBuilding dependency treeā¦\nReading state informationā¦\nThe following NEW packages will be installed:\n nginx\n0 upgraded, 1 newly installed, 0 to remove and 26 not upgraded.\nNeed to get 839 kB of archives.\nAfter this operation, 3007 kB of additional disk space will be used.\nWARNING: The following packages cannot be authenticated!\n nginx\nā, āstdout_linesā: [āReading package listsā¦ā, āBuilding dependency treeā¦ā, āReading state informationā¦ā, āThe following NEW packages will be installed:ā, " nginx", ā0 upgraded, 1 newly installed, 0 to remove and 26 not upgraded.ā, āNeed to get 839 kB of archives.ā, āAfter this operation, 3007 kB of additional disk space will be used.ā, āWARNING: The following packages cannot be authenticated!ā, " nginx"]}
to retry, use: --limit @/var/tmp/configuration/playbooks/openedx_native.retryPLAY RECAP *********************************************************************
localhost : ok=38 changed=5 unreachable=0 failed=1INFO:/var/tmp/configuration/playbooks/callback_plugins/task_timing: Update apt-get ------------------------------------------------------------------ 7.66s
INFO:/var/tmp/configuration/playbooks/callback_plugins/task_timing: Install the nginx package ------------------------------------------------------- 7.09s
INFO:/var/tmp/configuration/playbooks/callback_plugins/task_timing: Install role-independent useful system packages [2] ----------------------------- 6.72s
INFO:/var/tmp/configuration/playbooks/callback_plugins/task_timing: Install ubuntu system packages [1] ---------------------------------------------- 6.52s
INFO:/var/tmp/configuration/playbooks/callback_plugins/task_timing: pip install virtualenv [1] ------------------------------------------------------ 6.46s
INFO:/var/tmp/configuration/playbooks/callback_plugins/task_timing: Gathering Facts ----------------------------------------------------------------- 3.14s
INFO:/var/tmp/configuration/playbooks/callback_plugins/task_timing: Install packages ---------------------------------------------------------------- 1.55s
INFO:/var/tmp/configuration/playbooks/callback_plugins/task_timing: Copy the templates to their respestive destination [1] -------------------------- 1.55s
INFO:/var/tmp/configuration/playbooks/callback_plugins/task_timing: Add apt key --------------------------------------------------------------------- 1.25s
INFO:/var/tmp/configuration/playbooks/callback_plugins/task_timing: Update expired apt keys [1] ----------------------------------------------------- 0.97s
INFO:/var/tmp/configuration/playbooks/callback_plugins/task_timing:
Playbook Configure instance(s) finished: 2019-10-21 08:08:23.572689, 162 total tasks. 0:00:54.986047 elapsed.
For allow-unauthenticated I tried to make a change in Ansible task file \edx\etc\playbooks\roles\nginx\tasks\main.yml
I just tried installing ironwood.master on a fresh 16.04 machine on AWS, and it completed successfully. Something else must be different about your machine, though I donāt know what.
What else have you done on that machine since it was first booted?
Thank you so much for looking into this issue. Reason behind it was downloading of nginx package were disabled by this new server. I discovered it when I was trying to install nginx sepaerately for this new server. And I got response connection failed.
Ansible message
There were unauthenticated packages and -y was used without --allow-unauthenticated