diff --git a/README.org b/README.org index 3e2abf2..944e3eb 100644 --- a/README.org +++ b/README.org @@ -1,2 +1,3 @@ * ansible-homelab +I use these to automate various tasks on the (mostly Debian) servers I run. diff --git a/debian-update.yml b/debian-update.yml index 46a32a1..afe9f85 100644 --- a/debian-update.yml +++ b/debian-update.yml @@ -1,5 +1,5 @@ --- -- hosts: all +- hosts: servers gather_facts: true become: true diff --git a/inventory.yml b/inventory.yml deleted file mode 100644 index 74fea37..0000000 --- a/inventory.yml +++ /dev/null @@ -1,15 +0,0 @@ ---- -homelab: - hosts: - hyperreal.coffee: - ansible_user: jas - ansible_host: hyperreal.coffee - ansible_python_interpreter: /usr/bin/python3 - aux-vm: - ansible_user: jas - ansible_host: 10.0.0.26 - ansible_python_interpreter: /usr/bin/python3 - box.moonshadow.dev: - ansible_user: jas - ansible_host: box.moonshadow.dev - ansible_python_interpreter: /usr/bin/python3 diff --git a/prometheus-setup.yml b/prometheus-setup.yml new file mode 100644 index 0000000..157265f --- /dev/null +++ b/prometheus-setup.yml @@ -0,0 +1,6 @@ +--- +- hosts: localhost + tasks: + - name: Import the Node Exporter role + import_role: + name: prometheus.prometheus.node_exporter diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..11ee9b0 --- /dev/null +++ b/shell.nix @@ -0,0 +1,13 @@ +{ pkgs ? import {} }: + +with pkgs; + +mkShell { + buildInputs = [ + ansible + ansible-lint + ]; + shellHooks = '' + export LC_ALL="C.UTF-8" + ''; +}