mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
parent
38d026b1db
commit
940a74a93a
1 changed files with 3 additions and 3 deletions
|
@ -141,9 +141,9 @@ Or, using the newer syntax::
|
|||
tasks:
|
||||
- include_role:
|
||||
name: foo_app_instance
|
||||
args:
|
||||
dir: '/opt/a'
|
||||
app_port: 5000
|
||||
vars:
|
||||
dir: '/opt/a'
|
||||
app_port: 5000
|
||||
...
|
||||
|
||||
You can conditionally execute a role. This is not generally recommended with the classic syntax, but is common when using ``import_role`` or ``include_role``::
|
||||
|
|
Loading…
Reference in a new issue