20 lines
691 B
Markdown
20 lines
691 B
Markdown
# ansible_home
|
|
|
|
## How to use it?
|
|
|
|
It's better to use a virtual environment to avoid incompitability issues
|
|
|
|
```bash
|
|
git clone https://git.vmn.su/max/vmn-ansible
|
|
cd vmn-ansible
|
|
python3 -m venv .venv
|
|
source .venv/bin/activate
|
|
pip install -r requirements.txt
|
|
ansible-galaxy collection install -r requirements.yaml
|
|
ansible-galaxy role install -r requirements.yaml
|
|
ansible-playbook playbooks/deploy_and_set_up_lxc_on_proxmox.yaml --vault-pass-file $VAULT_PASS_PATH -i inventory/localhost.yaml --private-key $SSH_KEY
|
|
```
|
|
|
|
**deploy** playbooks must be used with `inventory/localhost.yaml`, they need access to proxmox host only
|
|
|
|
There are also a systemd service and timer under `systemd` directory |