-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1565c59
commit 907c70f
Showing
1 changed file
with
8 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,4 +31,11 @@ | |
- server_contact != '[email protected]' | ||
fail_msg: "⚠️ WARNING: The server_contact is set to the default value. Please update it with a valid contact email." | ||
success_msg: "✅ Server notifications will be sent to {{ server_contact }}" | ||
ignore_errors: yes | ||
register: server_contact_check | ||
failed_when: false | ||
changed_when: server_contact_check is failed | ||
|
||
- name: Display warning if server_contact is not changed | ||
ansible.builtin.debug: | ||
msg: "{{ server_contact_check.fail_msg }}" | ||
when: server_contact_check is failed |