Refinement after testing on Archlinux again.

This commit is contained in:
Brian Lee 2023-08-11 12:24:48 -07:00
parent 609a341045
commit 78a7ee208d
5 changed files with 52 additions and 3 deletions

View File

@ -8,8 +8,8 @@ None.
## Role Variables
There is one variable, which is the list of packages to install.
Extra packages can be installed by using the custom list:
```yaml
sysadmin_packages: []
sysadmin_packages_custom: []
```

View File

@ -1,2 +1,3 @@
---
sysadmin_packages: []
sysadmin_packages: []
sysadmin_packages_custom: []

View File

@ -12,6 +12,12 @@
state: present
name: "{{ sysadmin_packages }}"
- name: Ensure custom sysadmin utility packages are installed.
ansible.builtin.package:
state: present
name: "{{ sysadmin_packages_custom }}"
when: sysadmin_packages_custom | length > 0
- name: Generate ed25519 SSH host key
ansible.builtin.command:
cmd: ssh-keygen -A

View File

@ -49,6 +49,14 @@
# reboot_timeout: 3600
# when: kernel_version is changed
- name: Update sources.list to select a fast mirror on Ubuntu
ansible.builtin.replace:
path: /etc/apt/sources.list
regexp: 'http://.*archive.ubuntu.com/ubuntu'
replace: 'mirror://mirrors.ubuntu.com/mirrors.txt'
when: ansible_distribution == 'Ubuntu'
- name: Update all packages to their latest version
ansible.builtin.apt:
name: '*'

34
vars/Archlinux.yml Normal file
View File

@ -0,0 +1,34 @@
---
sysadmin_packages:
- bash-completion
- curl
- dnsutils
- doas
- dosfstools
- ffmpeg
- file
- git
- gnupg
- htop
- jq
- mediainfo
- mtr
- net-tools
- netcat
- nginx
- p7zip
- parted
- pass
- psmisc
- rsync
- smartmontools
- tcpdump
- tmux
- tree
- unzip
- vi
- vim
- vim
- wget
- which
- whois