No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2022-11-24 11:26:15 +02:00
defaults Initial commit 2022-10-21 06:34:26 +03:00
meta Initial commit 2022-10-21 06:34:26 +03:00
tasks Switch from import_tasks to include_tasks for better performance 2022-11-24 11:26:15 +02:00
Makefile Initial commit 2022-10-21 06:34:26 +03:00
README.md Shorten example message 2022-10-21 06:48:01 +03:00

Ansible playbook runtime messages role

This is an Ansible role which lets other roles inject messages into devture_playbook_runtime_messages_list and outputs those messages at the end of playbook execution.

Usage

Example playbook:

- hosts: servers
  roles:
    - role: some_role
    - role: another_role

    - role: galaxy/com.devture.ansible.role.playbook_runtime_messages

Example tasks in some_role or another_role:

- name: Inject warning message
  ansible.builtin.set_fact:
    devture_playbook_runtime_messages_list: |
      {{
        devture_playbook_runtime_messages_list | default([])
        +
        [
          "NOTE: This is a warning message to be printed at the end of playbook execution"
        ]
      }}