ansible/roles/common/tasks/packages.yml

59 lines
1.2 KiB
YAML
Raw Normal View History

#!/usr/bin/ansible-playbook
# vim:ft=ansible:
---
2020-09-02 18:12:10 -05:00
- name: Install packages via APT
block:
- name: Update and upgrade apt packages
apt:
2020-09-02 18:15:57 -05:00
upgrade: yes
update_cache: yes
# One day
cache_valid_time: 86400
- name: Install basic packages
apt:
name:
- acl
2020-08-28 16:15:07 -05:00
- apt-file
- aptitude
- awscli
- htop
- ncdu
- net-tools
- openssh-server
- pwgen
- python3-apt
2020-07-21 13:33:59 -05:00
- screen
- vim
- whois
- name: Install basic packages without recommends
apt:
install_recommends: no
name:
- smartmontools
- name: Remove packages
apt:
state: absent
name:
- unattended-upgrades
become: yes
when: ansible_os_family == "Debian"
2020-09-02 18:12:10 -05:00
- name: Install packages via APK
block:
2020-09-02 18:15:57 -05:00
- name: Update and upgrade packages
apk:
upgrade: yes
update_cache: yes
2020-09-02 18:12:10 -05:00
- name: Install basic packages
apk:
name:
- acl
2020-09-02 18:12:10 -05:00
- coreutils
2020-09-02 18:15:57 -05:00
- gcc
2020-09-02 18:12:10 -05:00
- git
- htop
- ncdu
- screen
- vim
become: yes
2020-09-02 22:12:47 -05:00
when: ansible_distribution == "Alpine"