Better Structure the Repo and Some Other Enhancements #15

Merged
june merged 8 commits from cleanup into main 2024-12-08 16:14:41 +01:00

8 commits

Author SHA1 Message Date
19abc5f585
reference new "resources" dir and generally fix up and improve README
All checks were successful
/ Ansible Lint (push) Successful in 1m41s
/ Ansible Lint (pull_request) Successful in 1m41s
2024-12-08 02:55:25 +01:00
e713b2ea5b
exclude symlinked ("roles" and "resources") dirs from vscode search
Also remove the ".vscode" directory from the ".gitignore" as the repo
includes stuff in it.
2024-12-08 02:55:25 +01:00
63390c5588
enable pipelining as it seems to work and be faster
See:
https://docs.ansible.com/ansible/latest/reference_appendices/config.html#ansible-pipelining
2024-12-08 02:55:25 +01:00
07dbbf055c
reorganize (config) files and templates into one "resources" dir
This groups the files and templates for each host together and therefore
makes it easier to see all the (config) files for a host.

Also clean up incorrect, unused docker_compose config for mumble and
clean up unused engelsystem configs.
2024-12-08 02:55:25 +01:00
4b0e03e8b2
ensure all template files have a .j2 file extension
As they should and as this is preparation for a future change
reorganizing the file structure.
2024-12-08 02:55:25 +01:00
f16f8697c2
move roles, files and templates dirs out of playbook dir into root dir
Because of how Ansible local relative search paths work, the global
"files" and "templates" directories need to be next to the playbooks.
However its not intuitive to look into the "playbooks" directory to find
the files and templates for a host.
Therefore move them out of the "playbooks" directory into the root
directory and add symlinks so everything still works.

Similarly for local roles, they also need to be next to the playbooks.
So for a nicer structure, move the "roles" directory out into the root
directory as well and add a symlink so everything still works.

Also see:
https://docs.ansible.com/ansible/latest/playbook_guide/playbook_pathing.html#resolving-local-relative-paths
https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_reuse_roles.html#storing-and-finding-roles
2024-12-08 02:55:25 +01:00
2460c31e78
check.yaml: add logic for printing all .dpkg-* files 2024-12-08 02:55:25 +01:00
2a4d3c5415
check.yaml: introduce check playbook with it printing host distro info
This playbook is for checking various host parameters.
2024-12-08 02:55:25 +01:00