]> git.phdru.name Git - ansible.git/blobdiff - playbooks/roles/init-system/tasks/apt.yml
Feat(init-system): Always update `/etc/apt/sources.list`
[ansible.git] / playbooks / roles / init-system / tasks / apt.yml
index 4e25984bc4d71e66e17d0d19f8ece4d3fb76e492..7b2ee2ed1b8b1e785cff2fedde01aa429cb32b27 100644 (file)
@@ -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
@@ -27,7 +17,7 @@
            'bash', 'bash-completion', 'bzip2',
            'curl', 'deborphan', 'dnsutils', 'dselect', 'ifupdown-extra',
            'gnupg', 'gnupg2', 'logcheck', 'mc', 'mutt',
-           'procmail', 'rsync', 'unzip', 'vim', 'wget', 'zip',
+           'procmail', 'rsync', 'unzip', 'vim', 'wget', 'whois', 'zip',
           ]
     state: latest
     update_cache: yes