diff options
author | 2023-08-13 15:00:25 +0100 | |
---|---|---|
committer | 2023-08-13 18:26:36 +0100 | |
commit | 1964895bab854995c0b65d157b7186ea0607c764 (patch) | |
tree | 61c9c3345576cd6bc66dac8404d5a43489f4908b | |
parent | Move all ansible files to their own folder (diff) |
Add a basic README for the ansible folder
-rw-r--r-- | ansible/README.md | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ansible/README.md b/ansible/README.md new file mode 100644 index 0000000..b823e56 --- /dev/null +++ b/ansible/README.md @@ -0,0 +1,17 @@ +# Ansible + +This folder contains Ansible roles which are used to configure out bare metal servers. + +## Local Environment Setup + +To setup a local environment using VMs for testing, [Read here](./local_testing/README.md) + +1. Create a virtual environment: `python -m venv venv` +1. Activate the virtual environment + - Windows: `.\venv\Scripts\activate` + - Note: [Ansible cannot run on Windows hosts natively](https://docs.ansible.com/ansible/latest/user_guide/windows_faq.html#can-ansible-run-on-windows) + - Unix: `source venv/bin/activate` +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` +1. Install the pre-commit hook: `pre-commit install` +1. Create a `vault_passwords` file and write the vault password to it |