Files
ansible_uni_deploy/docs/commands_explained.md
warezjoe 5bbc551106 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.
2026-01-26 11:54:00 +01:00

1.6 KiB

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).