From d449c3ae2cdce958f67202368d2cb6c747cf0661 Mon Sep 17 00:00:00 2001 From: Matej Focko Date: Wed, 30 Aug 2023 15:43:19 +0200 Subject: [PATCH] chore: add ansible inventory Signed-off-by: Matej Focko --- ansible.cfg | 2 +- inventory/desktops.yml | 30 ++++++++++++++++++++++++++++++ inventory/global.yml | 7 +++++++ inventory/servers.yml | 14 ++++++++++++++ inventory/ssh_only.yml | 6 ++++++ 5 files changed, 58 insertions(+), 1 deletion(-) create mode 100644 inventory/desktops.yml create mode 100644 inventory/global.yml create mode 100644 inventory/servers.yml create mode 100644 inventory/ssh_only.yml diff --git a/ansible.cfg b/ansible.cfg index 1d5789c..d7109f2 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -1,3 +1,3 @@ [defaults] -inventory = inventory/inventory +inventory = inventory/ roles_path = roles/ diff --git a/inventory/desktops.yml b/inventory/desktops.yml new file mode 100644 index 0000000..a77073f --- /dev/null +++ b/inventory/desktops.yml @@ -0,0 +1,30 @@ +--- +desktops: + hosts: + hertz: + ampere: + git_email: "mfocko@redhat.com" + ohm: + + vars: + sshd: + port: 22 + + auth: + permit_root_login: "no" + password_authentication: "yes" + trusted_ca: true + + sign_host_keys: false + + flatpak: + apps: + - com.chatterino.chatterino + - com.discordapp.Discord + - com.spotify.Client + # - net.ankiweb.Anki + - org.gnome.DejaDup + - org.mozilla.Thunderbird + # - org.raspberrypi.rpi-imager + - org.telegram.desktop + # - org.x.Warpinator diff --git a/inventory/global.yml b/inventory/global.yml new file mode 100644 index 0000000..685e4c8 --- /dev/null +++ b/inventory/global.yml @@ -0,0 +1,7 @@ +--- +all: + vars: + target_user: "mfocko" + fullname: "Matej Focko" + git_email: "me@mfocko.xyz" + gpg_signingkey: "7C47D46246790496" diff --git a/inventory/servers.yml b/inventory/servers.yml new file mode 100644 index 0000000..0b20909 --- /dev/null +++ b/inventory/servers.yml @@ -0,0 +1,14 @@ +--- +servers: + hosts: + poincare: + maxwell: + sshd: + port: 6969 + + auth: + permit_root_login: "no" + password_authentication: "no" + trusted_ca: true + + sign_host_keys: true diff --git a/inventory/ssh_only.yml b/inventory/ssh_only.yml new file mode 100644 index 0000000..50a1f10 --- /dev/null +++ b/inventory/ssh_only.yml @@ -0,0 +1,6 @@ +--- +ssh_only: + hosts: + aisa: + anxur: + merlin: