Refactor: Organize Ansible project structure

- Reorganized Ansible project structure to follow best practices.
- Created dedicated directories: , , , , and .
- Categorized playbooks into  (host-specific) and  (service-specific).
- Moved all roles into the  directory and standardized their naming conventions.
- Relocated  to  for better variable management.
- Renamed  to  to reflect its global variable scope.
- Created  to correctly set the  to the new  directory.
- Moved  and  into the  directory.
- Added  to  providing explanations for common commands.
- Cleaned up  directories from all individual roles to centralize version control.
This commit is contained in:
warezjoe
2026-01-26 11:54:00 +01:00
parent 25fa9eaf25
commit 5bbc551106
177 changed files with 4162 additions and 77 deletions

2
docs/README.md Normal file
View File

@@ -0,0 +1,2 @@
# Ansible_Universal_Deploy
Just for me. Set all right.

6
docs/command-to-run.txt Normal file
View File

@@ -0,0 +1,6 @@
ansible-playbook --ask-vault-pass -i inventory playbook.yml
ansible-galaxy role init {role-to-create}
ansible-vault edit vault.yml
ansible -m ping -i inventory --ask-pass {machine}
mkpasswd --method=sha-512

View File

@@ -0,0 +1,28 @@
Here is an explanation of the commands in your `command-to-run.txt` file:
* `ansible-playbook --ask-vault-pass -i inventory playbook.yml`: This command executes an Ansible playbook.
* `ansible-playbook`: The command to run a playbook.
* `--ask-vault-pass`: Prompts for the Ansible Vault password to decrypt any encrypted files or variables.
* `-i inventory`: Specifies the inventory file to use.
* `playbook.yml`: The playbook file to execute.
* `ansible-galaxy role init {role-to-create}`: This command initializes a new Ansible role with a directory structure.
* `ansible-galaxy`: The command for managing Ansible roles.
* `role init`: The subcommand to initialize a new role.
* `{role-to-create}`: The name of the role to create.
* `ansible-vault edit vault.yml`: This command edits a file encrypted with Ansible Vault.
* `ansible-vault`: The command for managing Ansible Vault.
* `edit`: The subcommand to edit an encrypted file.
* `vault.yml`: The encrypted file to edit.
* `ansible -m ping -i inventory --ask-pass {machine}`: This command checks the connectivity to a managed node.
* `ansible`: The command to run ad-hoc Ansible commands.
* `-m ping`: Specifies the `ping` module to use.
* `-i inventory`: Specifies the inventory file to use.
* `--ask-pass`: Prompts for the SSH password.
* `{machine}`: The managed node to ping.
* `mkpasswd --method=sha-512`: This command creates a hashed password.
* `mkpasswd`: The command to create a password.
* `--method=sha-512`: Specifies the hashing algorithm to use (SHA-512).