Skip to content

Commit

Permalink
Use tags for role dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
ypid committed Sep 27, 2015
1 parent e0c52a2 commit 4325575
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@
dependencies:

- role: debops.secret
tags: [ 'depend::secret', 'depend::secret:etherpad', 'depend-of::etherpad', 'type::dependency:hard' ]

- role: debops.etc_services
tags: [ 'depend::etc_services', 'depend::etc_services:etherpad', 'depend-of::etherpad', 'type::dependency' ]

- role: debops.nodejs
tags: [ 'depend::nodejs', 'depend::nodejs:etherpad', 'depend-of::etherpad', 'type::dependency' ]

- role: debops.mysql
tags: [ 'depend::mysql', 'depend::mysql:etherpad', 'depend-of::etherpad', 'type::dependency' ]
when: (etherpad_dependencies is defined and etherpad_dependencies) and
(etherpad_database is defined and etherpad_database and etherpad_database == 'mysql')

Expand All @@ -23,10 +27,10 @@ dependencies:
state: 'present'

- role: debops.nginx
tags: [ 'depend::nginx', 'depend::nginx:etherpad', 'depend-of::etherpad', 'type::dependency' ]
nginx_servers: [ '{{ etherpad_nginx_server }}' ]
nginx_upstreams: [ '{{ etherpad_nginx_upstream }}' ]
when: (etherpad_dependencies is defined and etherpad_dependencies)
tags: nginx

galaxy_info:
author: 'Maciej Delmanowski'
Expand Down

0 comments on commit 4325575

Please sign in to comment.