chore(gitlab): try using docker compose

This commit is contained in:
Michele Cereda
2024-05-10 00:39:35 +02:00
parent 2215e8c784
commit e57d47aea4
11 changed files with 232 additions and 3 deletions

View File

@@ -52,7 +52,7 @@ ansible -i 'localhost,' -c 'local' -km 'setup' 'localhost'
# This will *not* execute the plays inside it.
ansible-playbook 'path/to/playbook.yml' --syntax-check
# Execute a playbook.
# Execute playbooks.
ansible-playbook 'path/to/playbook.yml' -i 'hosts.list'
ansible-playbook … -i 'host1,host2,hostN,' -l 'hosts,list'
ansible-playbook … -i 'host1,host2,other,' -l 'hosts-pattern'
@@ -71,6 +71,9 @@ ansible-playbook 'path/to/playbook.yml' --list-tasks
ansible-playbook … --list-tasks --tags 'configuration,packages'
ansible-playbook … --list-tasks --skip-tags 'system,user'
# Debug playbooks.
ANSIBLE_ENABLE_TASK_DEBUGGER=True ansible-playbook …
# List roles installed from Galaxy.
ansible-galaxy list
@@ -269,9 +272,10 @@ ansible-galaxy install -r 'requirements.yml'
### Role dependencies
Set them up in `role/meta/main.yml`:
```yaml
---
# role/meta/main.yml
dependencies:
- role: common
vars:
@@ -282,6 +286,14 @@ dependencies:
other_parameter: 12
```
and/or in `role/meta/requirements.yml`:
```yaml
---
collections:
- community.dns
```
## Output formatting
> Introduced in Ansible 2.5