It seems the ppa for Python 3.6 is no longer available and it's causing the scripts to fail:
TASK [apt] **********************************************************************************************************************************************************************************
[WARNING]: Could not find aptitude. Using apt-get instead
fatal: [192.168.253.21]: FAILED! => {"changed": false, "msg": "Failed to update apt cache: W:Updating from such a repository can't be done securely, and is therefore disabled by default., W:See apt-secure(8) manpage for repository creation and user configuration details., E:The repository 'http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu bionic Release' no longer has a Release file."}
Im unable to remove it from the cache for some reason - i've tried
OK, seems I spoke too soon. The Ansible scripts fail with:
TASK [common_installs : Add Python PPA for bionic and xenial] *******************************************************************************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: apt.cache.FetchFailedException: E:The repository 'http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu bionic Release' does not have a Release file.
fatal: [192.168.253.21]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n File "", line 114, in \n File "", line 106, in _ansiballz_main\n File "", line 49, in invoke_module\n File "/tmp/ansible_apt_repository_payload_PWnHXY/main.py", line 554, in \n File "/tmp/ansible_apt_repository_payload_PWnHXY/main.py", line 546, in main\n File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 559, in update\n raise FetchFailedException(e)\napt.cache.FetchFailedException: E:The repository 'http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu bionic Release' does not have a Release file.\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}
Sorry about this mess, we are working on figuring out the best workaround for this, but if the target machines already have the packages installed, you should be able to deploy by removing this dependency from your ansible deploy scripts (and removing the line from the apt sources as you did)
Thanks for adding the update. That's super useful!
I am curious how the PPA for Python 3.6 got there. I think Ubuntu 18.04 uses Python 3.6 by default, so I'm not sure why it needs that PPA. Do you know whether this machine upgraded from a previous version of Ubuntu?