-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update manage-participants playbook (#71)
* Update manage-participants playbook - Add optional null entrypoint - Check url & token both defined and not null - Iterate over correct list of users to remove on ResourceClaim deletion - Use old galaxy requirements format for dependencies - Remove the git_config override injected through resource dispatcher in favor of vars at role level - Remove the use of __meta__ which has been deprecated upstream. - Update commit msg to include filenames * Update commit msg format * Remove all participants - Ensure all participants are removed when resourceclaim deleted - Update task name to be more descriptive - Ensure the queue is also cleared if defined * Fix indentation on callback when condition
- Loading branch information
MAHDTech
authored
Oct 15, 2021
1 parent
7e69d5d
commit 316a292
Showing
8 changed files
with
90 additions
and
50 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
|
||
- hosts: mail-host | ||
gather_facts: false | ||
tasks: | ||
|
||
- name: "Include additional variables / inventory content" | ||
include_vars: | ||
file: "{{ item }}" | ||
with_items: "{{ email_template | fileglob }}" | ||
|
||
- name: Notify users | ||
import_playbook: "../../requirements_roles/infra-ansible/playbooks/notifications/email-notify-users.yml" | ||
vars: | ||
users: "{{ identities.users }}" |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
# vim: set ft=ansible: | ||
|
||
################################################################################ | ||
# Entry point used to send a completion callback and ends the playbook without action | ||
################################################################################ | ||
|
||
- import_playbook: completion_callback.yml | ||
|
||
- name: End Playbook | ||
meta: end_play |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,6 @@ | ||
--- | ||
################################################## | ||
# Requirements (Roles) | ||
################################################## | ||
|
||
collections: [] | ||
|
||
roles: | ||
- name: infra-ansible | ||
scm: git | ||
|
||
# TODO: Phase 1: Run from fork | ||
src: https://github.com/MAHDTech/infra-ansible | ||
version: feature/user-reset | ||
|
||
# TODO: Phase 2: Run from main | ||
#src: https://github.com/redhat-cop/infra-ansible | ||
#version: main | ||
|
||
# TODO: Phase 3: Run from release | ||
#src: https://github.com/redhat-cop/infra-ansible | ||
#version: v2.0.4 | ||
- name: infra-ansible | ||
scm: git | ||
src: https://github.com/redhat-cop/infra-ansible | ||
version: main |