33 lines
521 B
Markdown
33 lines
521 B
Markdown
# Operations
|
|
|
|
Install collections:
|
|
|
|
```sh
|
|
ansible-galaxy collection install -r requirements.yml
|
|
```
|
|
|
|
Run a syntax check:
|
|
|
|
```sh
|
|
ansible-playbook --syntax-check playbooks/site.yml
|
|
```
|
|
|
|
Run locally:
|
|
|
|
```sh
|
|
ansible-playbook -i inventories/development/hosts.yml playbooks/site.yml
|
|
```
|
|
|
|
Run selected tags:
|
|
|
|
```sh
|
|
ansible-playbook -i inventories/production/hosts.yml playbooks/site.yml --tags base,docker,traefik
|
|
```
|
|
|
|
Run with ansible-pull:
|
|
|
|
```sh
|
|
REPO_URL=git@github.com:example/nbops-ansible.git scripts/ansible-pull.sh
|
|
```
|
|
|