ansible/roles/common/tasks/packages.yml
2021-10-05 10:32:49 -05:00

42 lines
1.0 KiB
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
- jq
- ncdu
- net-tools
- nfs-common
- openssh-server
- pwgen
- python-is-python3 # God damn you Nextcloud role
- python3-apt
- python3-boto
- python3-boto3
- python3-botocore
- python3-docker
- python3-pip
- python3-setuptools
- screen
- stow
- stress
- tmux
- vim
- whois
- name: remove basic packages
apt: state=absent name=unattended-upgrades
- name: autoremove
apt: autoremove=yes purge=yes
- name: autoclean
apt: autoclean=yes
when: ansible_os_family == "Debian"