ansible/roles/common/tasks/packages.yml
2020-10-17 00:21:57 -05:00

27 lines
635 B
YAML

#!/usr/bin/ansible-playbook
# vim:ft=ansible:
- name: configure packages via apt
block:
- name: update apt packages
apt: upgrade=yes update_cache=yes cache_valid_time=86400
- name: install basic packages
apt:
name:
- acl
- apt-file
- aptitude
- awscli
- htop
- ncdu
- net-tools
- openssh-server
- pwgen
- python3-apt
- screen
- vim
- whois
- name: remove basic packages
apt: state=absent name=unattended-upgrades
become: yes
when: ansible_os_family == "Debian"