0

I've been using ansible-django-stack for some time now and recently an error has been cropping up with installing security updates on Ubuntu servers (16.04 and 18.04 both have the same issue).

16.04:

SystemError: E:The value 'xenial-security' is invalid for APT::Default-Release as such a release is not available in the sources

18.04:

SystemError: E:The value 'xenial-security' is invalid for APT::Default-Release as such a release is not available in the sources

The task in the playbook is as follows:

- name: Install security updates
  apt: default_release={{ ansible_distribution_release }}-security
       update_cache=true
       upgrade=dist

What happens is that the first time I run the playbook the installation goes fine. Subsequently, however, this error occurs. What would I adjust to make my security updates run as expected when running the playbook?

YPCrumble
  • 175
  • 6

0 Answers0