From 840e07d7474b4ed34d3d5a60c8f7d5f918dea16d Mon Sep 17 00:00:00 2001 From: Menno van Leeuwen Date: Tue, 11 Mar 2025 12:03:59 +0100 Subject: [PATCH] feat: add dotfiles-test configuration to Ansible inventory and tasks --- config/ansible/inventory.ini | 1 + config/ansible/main.yml | 2 +- config/ansible/tasks/global/symlinks.yml | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/config/ansible/inventory.ini b/config/ansible/inventory.ini index 2606faa..b92bdc6 100644 --- a/config/ansible/inventory.ini +++ b/config/ansible/inventory.ini @@ -6,3 +6,4 @@ mennos-desktop ansible_connection=local mennos-server ansible_connection=local mennos-hobbypc ansible_connection=local mennos-vm ansible_connection=local +dotfiles-test ansible_connection=local \ No newline at end of file diff --git a/config/ansible/main.yml b/config/ansible/main.yml index 173ac05..bae4cb4 100644 --- a/config/ansible/main.yml +++ b/config/ansible/main.yml @@ -12,4 +12,4 @@ - name: Include server tasks ansible.builtin.import_tasks: tasks/servers/server.yml - when: hostname in ['mennos-server', 'mennos-hobbypc', 'mennos-vm'] + when: hostname in ['mennos-server', 'mennos-hobbypc', 'mennos-vm', 'dotfiles-test'] diff --git a/config/ansible/tasks/global/symlinks.yml b/config/ansible/tasks/global/symlinks.yml index 7360955..049e24a 100644 --- a/config/ansible/tasks/global/symlinks.yml +++ b/config/ansible/tasks/global/symlinks.yml @@ -30,6 +30,7 @@ mennos-server: "$DOTFILES_PATH/config/git/gitconfig.mennos-server" mennos-vm: "$DOTFILES_PATH/config/git/gitconfig.mennos-server" mennos-hobbypc: "$DOTFILES_PATH/config/git/gitconfig.linux" + dotfiles-test: "$DOTFILES_PATH/config/git/gitconfig.linux" - name: Create SSH authorized_keys symlink ansible.builtin.file: @@ -45,3 +46,4 @@ mennos-server: "$DOTFILES_PATH/config/ssh/authorized_keys/mennos-server" mennos-vm: "$DOTFILES_PATH/config/ssh/authorized_keys/mennos-server" mennos-hobbypc: "$DOTFILES_PATH/config/ssh/authorized_keys/mennos-hobbypc" + dotfiles-test: "$DOTFILES_PATH/config/git/gitconfig.linux"