Last active
July 7, 2017 19:07
-
-
Save lconnell/dfb1dc5383517b3bdd9c4832ae9027e2 to your computer and use it in GitHub Desktop.
Ansible Role Dependencies
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Calling Role (shared.album) | |
--- | |
- block: | |
- include_role: | |
name: shared.slack | |
vars: | |
msg: "{{ slack_start_message }}" | |
token: "{{ slack_token }}" | |
channel: "{{ slack_channel }}" | |
color: "good" | |
- name: enable vip in gslb | |
album_enable_wip_pool_member: | |
org: "{{ album_org }}" | |
env: "{{ album_env }}" | |
wip: "{{ album_wip }}" | |
node: "{{ album_node }}" | |
node_order: "{{ album_node_order }}" | |
album_user: "{{ album_user }}" | |
album_password: "{{ album_password }}" | |
- include_role: | |
name: shared.slack | |
vars: | |
msg: "{{ slack_finish_message }}" | |
token: "{{ slack_token }}" | |
channel: "{{ slack_channel }}" | |
color: "good" | |
rescue: | |
- include_role: | |
name: shared.slack | |
vars: | |
msg: "{{ slack_error_message }}" | |
token: "{{ slack_token }}" | |
channel: "{{ slack_channel }}" | |
color: "danger" | |
# Calling Role (meta.yml) | |
galaxy_info: | |
author: Lee Connell | |
description: ALBUM integration | |
company: "" | |
license: Proprietary | |
min_ansible_version: 2.0 | |
platforms: | |
- name: EL | |
versions: | |
- 6 | |
- 7 | |
galaxy_tags: [] | |
dependencies: | |
- src: "git@github" | |
path: roles | |
scm: git | |
version: master | |
name: shared.slack | |
# Dependent Role (shared.slack) | |
--- | |
- name: "{{ msg }}" | |
local_action: | |
module: slack | |
token: "{{ token }}" | |
msg: "{{ msg }}" | |
color: "{{ color }}" | |
parse: 'full' | |
channel: "{{ channel }}" | |
run_once: true | |
when: token is defined |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment