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
|
|
|
|
become: yes
|
2020-09-02 18:12:10 -05:00
|
|
|
when: ansible_distribution == "Ubuntu"
|
|
|
|
- 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:
|
|
|
|
- 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
|
|
|
|
when: ansible_distribution == "postmarketOS"
|