diff options
| author | 2024-05-01 09:19:13 +0200 | |
|---|---|---|
| committer | 2024-05-01 18:15:14 +0200 | |
| commit | ba970c7b3ffea5c773bc9d65fde3f37c4a5f4c60 (patch) | |
| tree | ebad107a99bd7ac964feb32b13d6ae36d988f888 /ansible/README.md | |
| parent | ignore pycharm's idea files (diff) | |
Depend on ansible-core instead of Ansible
Allow for faster local installation by only installing what we need.
Diffstat (limited to 'ansible/README.md')
| -rw-r--r-- | ansible/README.md | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/ansible/README.md b/ansible/README.md index cdb5278..bdc4034 100644 --- a/ansible/README.md +++ b/ansible/README.md @@ -9,11 +9,13 @@ If you are on Windows, you need to install WSL and run Ansible in there, as natively](https://docs.ansible.com/ansible/latest/user_guide/windows_faq.html#can-ansible-run-on-windows). Debian Stable is recommended, but any Linux distribution should work. -1. Create a virtual environment: `python -m venv venv` -1. Activate the virtual environment -1. Update pip and builder deps: `python -m pip install --upgrade pip wheel setuptools` -1. Install project dependencies: `python -m pip install -r requirements.txt` +From the project root directory: + 1. Install the pre-commit hook: `pre-commit install` +1. Install Poetry: `apt install python3-poetry` +1. Install dependencies: `poetry install` +1. Head to the `ansible` directory: `cd ansible` +1. Install Ansible dependencies: `poetry run ansible-galaxy install -r roles/requirements.yml` 1. Create a `vault_passwords` file and write the vault password to it 1. Configure the Ansible Vault git diff driver using `git config --global diff.ansible-vault.textconv "ansible-vault view"` and `git config diff.ansible-vault.cachetextconv false` |