break inventory overrides less

This commit is contained in:
nd 2021-12-02 18:10:43 +01:00
parent 92f3499bfe
commit a13d0c244f
No known key found for this signature in database
GPG key ID: 21B5CD4DEE3670E9
4 changed files with 55 additions and 49 deletions

View file

@ -19,4 +19,50 @@ default_repos:
backports: backports:
url: "deb http://http.debian.net/{{ ansible_distribution|lower }} {{ ansible_distribution_release|lower }}-backports main" url: "deb http://http.debian.net/{{ ansible_distribution|lower }} {{ ansible_distribution_release|lower }}-backports main"
default_packages:
debian:
bullseye: &debian_packages
aptitude: {}
"apt-transport-https": {}
"libarchive-tools": {}
bzip2: {}
curl: {}
dnsutils: {}
file: {}
git: {}
haveged: {}
htop: {}
iftop: {}
iotop: {}
less: {}
"locales-all": {}
lsof: {}
mailutils: {}
members: {}
mksh: {}
"molly-guard": {}
mosh: {}
"mtr-tiny": {}
ncdu: {}
"ncurses-term": {}
"net-tools": {}
nmap: {}
pciutils: {}
pv: {}
python3: {}
rsync: {}
screen: {}
sshfs: {}
sudo: {}
sysstat: {}
tcpdump: {}
tmux: {}
tree: {}
unzip: {}
usbutils: {}
"vim": {}
vnstat: {}
"xz-utils": {}
zip: {}
zsh: {}
buster: *debian_packages

View file

@ -1,2 +0,0 @@
dependencies:
- { role: packages }

View file

@ -1,4 +1,12 @@
--- ---
- name: install default packages and repos
include_role:
name: packages
vars:
packages:
pkg: "{{ default_packages[ansible_distribution|lower][ansible_distribution_release|lower] }}"
repos: "{{ default_repos[ansible_distribution|lower][ansible_distribution_release|lower] }}"
- name: copy environment - name: copy environment
copy: copy:
src: dotfiles/environment src: dotfiles/environment

View file

@ -1,46 +0,0 @@
packages:
pkg:
aptitude: {}
"apt-transport-https": {}
"libarchive-tools": {}
bzip2: {}
curl: {}
dnsutils: {}
file: {}
git: {}
haveged: {}
htop: {}
iftop: {}
iotop: {}
less: {}
"locales-all": {}
lsof: {}
mailutils: {}
members: {}
mksh: {}
"molly-guard": {}
mosh: {}
"mtr-tiny": {}
ncdu: {}
"ncurses-term": {}
"net-tools": {}
nmap: {}
pciutils: {}
pv: {}
python3: {}
rsync: {}
screen: {}
sshfs: {}
sudo: {}
sysstat: {}
tcpdump: {}
tmux: {}
tree: {}
unzip: {}
usbutils: {}
"vim": {}
vnstat: {}
"xz-utils": {}
zip: {}
zsh: {}
repos: "{{ default_repos[ansible_distribution|lower][ansible_distribution_release|lower] }}"