-- 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
'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
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