From: Oleg Broytman Date: Mon, 19 Oct 2020 18:49:19 +0000 (+0300) Subject: Feat(init-system): Always update `/etc/apt/sources.list` X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=2c29e378345f36b846415ed5d14bf6d29ef91a0b;p=ansible.git Feat(init-system): Always update `/etc/apt/sources.list` Module `template` doesn't overwrite identical file. --- diff --git a/playbooks/roles/init-system/tasks/apt.yml b/playbooks/roles/init-system/tasks/apt.yml index 08340dc..7b2ee2e 100644 --- a/playbooks/roles/init-system/tasks/apt.yml +++ b/playbooks/roles/init-system/tasks/apt.yml @@ -1,12 +1,3 @@ -- name: Check backports - shell: "grep -Fc backports /etc/apt/sources.list || :" - register: apt_configured - changed_when: apt_configured.stdout == "0" - -- debug: - msg: "apt has already been configured" - when: apt_configured.stdout != "0" - - name: Configure apt become: true template: @@ -15,7 +6,6 @@ owner: root group: root mode: '0640' - when: apt_configured.stdout == "0" - name: Install minimal software packages become: true