]> git.phdru.name Git - ansible.git/blobdiff - playbooks/roles/init-system/tasks/apt.yml
Feat(init-system): Remove `ntp`
[ansible.git] / playbooks / roles / init-system / tasks / apt.yml
index 2980427aa38dd546db2b9d23d7240dd4c62fa513..65f61d65a9e02723348a6c481f643ba18c06c121 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
@@ -25,9 +15,9 @@
     install_recommends: no
     name: ['apt', 'apt-transport-https', 'aptitude',
            'bash', 'bash-completion', 'bzip2',
-           'curl', 'deborphan', 'dnsutils', 'dselect',
+           '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
@@ -40,8 +30,8 @@
     cache_valid_time: 3600
     install_recommends: no
     name: ['avahi-autoip', 'bluetooth', 'bluez',
-           'debian-faq', 'doc-debian',
-           'emacsen-comm', 'vim-tiny',
+           'debian-faq', 'doc-debian', 'emacsen-comm',
+           'ntp', 'vim-tiny',
           ]
     purge: yes
     state: absent