-- 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:
owner: root
group: root
mode: '0640'
- when: apt_configured.stdout == "0"
- name: Install minimal software packages
become: true
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