diff --git a/files/apt-phased-updates b/files/apt-phased-updates new file mode 100644 index 0000000000000000000000000000000000000000..b64115ccf6498936028189ed541b2d08d5613f4d --- /dev/null +++ b/files/apt-phased-updates @@ -0,0 +1,2 @@ +Update-Manager::Never-Include-Phased-Updates true; +APT::Get::Never-Include-Phased-Updates true; diff --git a/tasks/main.yml b/tasks/main.yml index a3228f75f47a1b61c39af8079d9cde544b4d0b68..18357ccd7437117e1d4f756727a6b6908e5fe4ec 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -5,6 +5,15 @@ - name: Set machine hostname hostname: name="{{ inventory_hostname_short | lower | regex_replace('_','') }}" +- name: Never include APT phased update + copy: + src: apt-phased-updates + dest: /etc/apt/apt.conf.d/99-Phased-Updates + owner: root + group: root + mode: '0644' + when: ansible_os_family == "Debian" + - name: Debian Update repo and upgrade installed packages apt: update_cache: true