From 2c29e378345f36b846415ed5d14bf6d29ef91a0b Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Mon, 19 Oct 2020 21:49:19 +0300 Subject: [PATCH] Feat(init-system): Always update `/etc/apt/sources.list` Module `template` doesn't overwrite identical file. --- playbooks/roles/init-system/tasks/apt.yml | 10 ---------- 1 file changed, 10 deletions(-) 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 -- 2.39.5