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