Move local config into the root to make it easier to see

The local config is intended to be configured per environment. Therefore
it feels awkward to navigate deeply into the structures simply to adjust
a local configuration. Furthermore this change allows me to make an
assumption about the file right in the executed code, so if the file is
not setup properly ansible will fail even before execution!
This commit is contained in:
2025-09-13 03:12:53 +02:00
parent f48a87a0a2
commit b8e5743d1c
4 changed files with 4 additions and 2 deletions

2
.gitignore vendored
View File

@@ -1,6 +1,6 @@
*.html *.html
*.pdf *.pdf
group_vars/*/local.config.yml local.config.yml
password.txt password.txt
# Created by https://www.toptal.com/developers/gitignore/api/vim,intellij # Created by https://www.toptal.com/developers/gitignore/api/vim,intellij

View File

@@ -29,7 +29,7 @@ The setup is very simple, just follow these steps and you're good to go:
---- ----
git clone https://gitea.nehrke.info/nemoinho/dev-machine.git ~/Development/nemoinho/dev-machine # <1> git clone https://gitea.nehrke.info/nemoinho/dev-machine.git ~/Development/nemoinho/dev-machine # <1>
cd $_ cd $_
cp global_vars/localhost/local.config.yml.tpl global_vars/localhost/local.config.yml # <2> cp local.config.yml.tpl local.config.yml # <2>
vi $_ # <3> vi $_ # <3>
vi password.txt # <4> vi password.txt # <4>
ansible-galaxy install -r requirements.yml --upgrade # <5> ansible-galaxy install -r requirements.yml --upgrade # <5>

View File

@@ -1,5 +1,7 @@
--- ---
- hosts: localhost - hosts: localhost
vars_files:
- local.config.yml
roles: roles:
- role: roles/macos - role: roles/macos
tags: [macos] tags: [macos]