Deal with changing package names.
This commit is contained in:
parent
cd024b03d6
commit
609a341045
@ -1,20 +1,11 @@
|
||||
---
|
||||
- import_tasks: setup-Debian.yml
|
||||
when: ansible_os_family == 'Debian'
|
||||
|
||||
- import_tasks: setup-RedHat.yml
|
||||
when: ansible_os_family == 'RedHat'
|
||||
|
||||
- import_tasks: setup-Arch.yml
|
||||
when: ansible_os_family == 'Archlinux'
|
||||
|
||||
- name: Load a variable file based on the OS type, or a default if not found.
|
||||
include_vars: "{{ item }}"
|
||||
with_first_found:
|
||||
- "{{ ansible_distribution }}-{{ ansible_distribution_version }}.yml"
|
||||
- "{{ ansible_distribution }}-{{ ansible_facts.distribution_major_version }}.yml"
|
||||
- "{{ ansible_distribution }}.yml"
|
||||
- "{{ ansible_os_family }}.yml"
|
||||
- "Debian.yml"
|
||||
- "default.yml"
|
||||
|
||||
- name: Ensure sysadmin utility packages are installed.
|
||||
ansible.builtin.package:
|
||||
|
20
vars/Debian-12.yml
Normal file
20
vars/Debian-12.yml
Normal file
@ -0,0 +1,20 @@
|
||||
---
|
||||
sysadmin_packages:
|
||||
- curl
|
||||
- file
|
||||
- dnsutils
|
||||
- git
|
||||
- gpg
|
||||
- htop
|
||||
- nftables
|
||||
- iputils-ping
|
||||
- jq
|
||||
- net-tools
|
||||
- netcat-traditional
|
||||
- psmisc
|
||||
- python-is-python3
|
||||
- rsync
|
||||
- tcpdump
|
||||
- tmux
|
||||
- tree
|
||||
- vim
|
@ -6,7 +6,7 @@ sysadmin_packages:
|
||||
- git
|
||||
- gpg
|
||||
- htop
|
||||
# - iptables # replace with nftables
|
||||
# - iptables
|
||||
- iputils-ping
|
||||
- jq
|
||||
- net-tools
|
||||
|
18
vars/default.yml
Normal file
18
vars/default.yml
Normal file
@ -0,0 +1,18 @@
|
||||
---
|
||||
sysadmin_packages:
|
||||
- curl
|
||||
- file
|
||||
- dnsutils
|
||||
- git
|
||||
- gpg
|
||||
- htop
|
||||
- jq
|
||||
- net-tools
|
||||
- netcat
|
||||
- psmisc
|
||||
- python-is-python3
|
||||
- rsync
|
||||
- tcpdump
|
||||
- tmux
|
||||
- tree
|
||||
- vim
|
Loading…
Reference in New Issue
Block a user