2020-07-04 19:47:11 -05:00
|
|
|
#!/usr/bin/ansible-playbook
|
|
|
|
# vim:ft=ansible:
|
|
|
|
---
|
2020-09-02 18:12:10 -05:00
|
|
|
- name: Install packages via APT
|
2020-07-04 19:47:11 -05:00
|
|
|
block:
|
|
|
|
- name: Update and upgrade apt packages
|
|
|
|
apt:
|
2020-09-02 18:15:57 -05:00
|
|
|
upgrade: yes
|
2020-07-04 19:47:11 -05:00
|
|
|
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
|
2020-07-04 19:47:11 -05:00
|
|
|
- aptitude
|
|
|
|
- awscli
|
|
|
|
- htop
|
|
|
|
- ncdu
|
|
|
|
- net-tools
|
|
|
|
- openssh-server
|
|
|
|
- pwgen
|
|
|
|
- python3-apt
|
2020-07-21 13:33:59 -05:00
|
|
|
- screen
|
2020-07-04 19:47:11 -05:00
|
|
|
- vim
|
|
|
|
- whois
|
|
|
|
- name: Install basic packages without recommends
|
|
|
|
apt:
|
|
|
|
install_recommends: no
|
|
|
|
name:
|
|
|
|
- smartmontools
|
2020-09-04 06:55:10 -05:00
|
|
|
- name: Remove packages
|
|
|
|
apt:
|
|
|
|
state: absent
|
|
|
|
name:
|
|
|
|
- unattended-upgrades
|
2020-07-04 19:47:11 -05:00
|
|
|
become: yes
|
2020-09-04 06:16:30 -05:00
|
|
|
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:
|
2020-09-02 22:09:47 -05:00
|
|
|
- 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"
|