1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

changed examples to not use 'port' directive

This commit is contained in:
Brian Coca 2016-01-13 18:06:19 -05:00
parent a56c0bc27b
commit 4de4d59d7a

View file

@ -213,8 +213,8 @@ Also, should you wish to parameterize roles, by adding variables, you can do so,
- hosts: webservers - hosts: webservers
roles: roles:
- common - common
- { role: foo_app_instance, dir: '/opt/a', port: 5000 } - { role: foo_app_instance, dir: '/opt/a', app_port: 5000 }
- { role: foo_app_instance, dir: '/opt/b', port: 5001 } - { role: foo_app_instance, dir: '/opt/b', app_port: 5001 }
While it's probably not something you should do often, you can also conditionally apply roles like so:: While it's probably not something you should do often, you can also conditionally apply roles like so::
@ -284,7 +284,7 @@ a list of roles and parameters to insert before the specified role, such as the
--- ---
dependencies: dependencies:
- { role: common, some_parameter: 3 } - { role: common, some_parameter: 3 }
- { role: apache, port: 80 } - { role: apache, appache_port: 80 }
- { role: postgres, dbname: blarg, other_parameter: 12 } - { role: postgres, dbname: blarg, other_parameter: 12 }
Role dependencies can also be specified as a full path, just like top level roles:: Role dependencies can also be specified as a full path, just like top level roles::