Commit graph

9 commits

Author SHA1 Message Date
519c84e7f3
feat(playbook): add support for SSH password prompt
Introduced a `--ask-pass` argument to prompt for the SSH password, using the same password as the become password when provided. This allows secure SSH connections without pre-stored credentials, enhancing security and flexibility in multi-user environments.
2024-10-26 15:48:43 +02:00
40b130aae6
fix(inventory): correct hosts structure for opnsense
Added missing 'hosts' key under 'opnsense' in inventory.yml to ensure proper ansible group structure. This resolves potential issues with playbook execution that may have occurred due to the previous misconfiguration.
2024-10-26 15:02:04 +02:00
8b9667ce2b
fix(inventory): reorder hosts for clarity
Moved 'burns' from 'debian' to 'opnsense' and adjusted formatting for better organization and readability. This change helps maintain the logical structure of the inventory file, ensuring that hosts are grouped correctly according to their system type.
2024-10-26 14:58:12 +02:00
02f630fa5f
refactor(playbook): safely handle password with JSON encoding
Switches to using JSON encoding for handling the become password as an extra variable in subprocess calls. This ensures safer and more reliable handling of special characters within passwords, reducing the risk of shell injection vulnerabilities.
2024-10-26 14:58:04 +02:00
fdd1117f8c
chore: update file permissions for playbook.py
Changed file mode from 644 to 755 to enable execution permissions. This update allows the script to be run directly from the command line, improving ease of use and workflow efficiency. No changes to the file's content have been made.
2024-10-26 14:50:14 +02:00
63be88788e
feat: add Ansible support and improve inventory
- Added a new Python script to dynamically handle Ansible playbook executions with password prompts.
- Enhanced `inventory.yml` by defining explicit `ansible_name` and `ansible_host` for each host to improve manageability.
- Introduced `.gitignore` to omit `venv/` and `.vscode/` directories from version control, ensuring a cleaner repository.
- Updated `apt.yml` playbook to unify update and upgrade tasks, using `ansible.builtin.apt`.
- Created `requirements.txt` to manage Python dependencies, including `ansible`, `ansible-lint`, and `pyyaml`.

These changes streamline the management of Ansible hosts and execution of playbooks, aligning with best practices for ongoing development.
2024-10-25 18:50:37 +02:00
317b88a26a
fix(inventory): add colon for YAML host keys
Changed the inventory file format by appending colons to host names, ensuring valid YAML syntax for host definitions. This update prevents potential parsing issues and enhances clarity and maintainability.
2024-10-20 22:16:50 +02:00
8b95a966e7
feat(inventory): add 'edna' to server hosts list
The host 'edna' has been added to the servers list in the inventory file to reflect its availability for resource allocation and management. This ensures that any configurations or updates are applied consistently across all designated servers.
2024-10-20 22:12:16 +02:00
34044dc659
feat: add inventory setup and APT playbook for Debian
Introduced an inventory file listing Debian hosts for configuration management. Added a playbook to automate updating and upgrading packages on these hosts using APT. This enhances manageability and ensures consistency across Debian systems.
2024-10-04 17:46:39 +02:00