59 lines
1.2 KiB
YAML
59 lines
1.2 KiB
YAML
#!/usr/bin/ansible-playbook
|
|
# vim:ft=ansible:
|
|
---
|
|
- name: Install packages via APT
|
|
block:
|
|
- name: Update and upgrade apt packages
|
|
apt:
|
|
upgrade: yes
|
|
update_cache: yes
|
|
# One day
|
|
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: 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"
|
|
- name: Install packages via APK
|
|
block:
|
|
- name: Update and upgrade packages
|
|
apk:
|
|
upgrade: yes
|
|
update_cache: yes
|
|
- name: Install basic packages
|
|
apk:
|
|
name:
|
|
- acl
|
|
- coreutils
|
|
- gcc
|
|
- git
|
|
- htop
|
|
- ncdu
|
|
- screen
|
|
- vim
|
|
become: yes
|
|
when: ansible_distribution == "Alpine"
|