mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
chore(gitlab): try using docker compose
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user