Refinement after testing on Archlinux again.
This commit is contained in:
parent
609a341045
commit
78a7ee208d
@ -8,8 +8,8 @@ None.
|
|||||||
|
|
||||||
## Role Variables
|
## 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
|
```yaml
|
||||||
sysadmin_packages: []
|
sysadmin_packages_custom: []
|
||||||
```
|
```
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
---
|
---
|
||||||
sysadmin_packages: []
|
sysadmin_packages: []
|
||||||
|
sysadmin_packages_custom: []
|
@ -12,6 +12,12 @@
|
|||||||
state: present
|
state: present
|
||||||
name: "{{ sysadmin_packages }}"
|
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
|
- name: Generate ed25519 SSH host key
|
||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
cmd: ssh-keygen -A
|
cmd: ssh-keygen -A
|
||||||
|
@ -49,6 +49,14 @@
|
|||||||
# reboot_timeout: 3600
|
# reboot_timeout: 3600
|
||||||
# when: kernel_version is changed
|
# 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
|
- name: Update all packages to their latest version
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
name: '*'
|
name: '*'
|
||||||
|
34
vars/Archlinux.yml
Normal file
34
vars/Archlinux.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user