1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/tests/integration/targets/callback_diy/tasks/main.yml

458 lines
19 KiB
YAML
Raw Normal View History

####################################################################
# WARNING: These are designed specifically for Ansible tests #
# and should not be used as examples of how to write Ansible roles #
####################################################################
- name: Run tests
include_role:
name: callback
vars:
Added DIY callback plugin (#432) * Added diy callback plugin * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Add diy callback plugin integration tests * Update tests\integration\targets\callback_diy\tasks\main.yml * Update tests\integration\targets\callback_diy\tasks\main.yml * Add tests/integration/targets/callback_diy/handlers/main.yml * Update tests/integration/targets/callback_diy/tasks/main.yml * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-06-15 20:06:52 +02:00
tests:
- name: Not using diy callback options
environment:
ANSIBLE_NOCOLOR: 'true'
ANSIBLE_FORCE_COLOR: 'false'
ANSIBLE_STDOUT_CALLBACK: community.general.diy
Added DIY callback plugin (#432) * Added diy callback plugin * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Add diy callback plugin integration tests * Update tests\integration\targets\callback_diy\tasks\main.yml * Update tests\integration\targets\callback_diy\tasks\main.yml * Add tests/integration/targets/callback_diy/handlers/main.yml * Update tests/integration/targets/callback_diy/tasks/main.yml * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-06-15 20:06:52 +02:00
playbook: |
- hosts: testhost
gather_facts: false
tasks:
- name: Sample task name
debug:
msg: sample debug msg
expected_output: [
"",
"PLAY [testhost] ****************************************************************",
"",
"TASK [Sample task name] ********************************************************",
"ok: [testhost] => {",
" \"msg\": \"sample debug msg\"",
"}",
Added DIY callback plugin (#432) * Added diy callback plugin * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Add diy callback plugin integration tests * Update tests\integration\targets\callback_diy\tasks\main.yml * Update tests\integration\targets\callback_diy\tasks\main.yml * Add tests/integration/targets/callback_diy/handlers/main.yml * Update tests/integration/targets/callback_diy/tasks/main.yml * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-06-15 20:06:52 +02:00
"",
"PLAY RECAP *********************************************************************",
"testhost : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 "
Added DIY callback plugin (#432) * Added diy callback plugin * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Add diy callback plugin integration tests * Update tests\integration\targets\callback_diy\tasks\main.yml * Update tests\integration\targets\callback_diy\tasks\main.yml * Add tests/integration/targets/callback_diy/handlers/main.yml * Update tests/integration/targets/callback_diy/tasks/main.yml * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-06-15 20:06:52 +02:00
]
- name: Set playbook_on_start_msg callback using environment variable
environment:
ANSIBLE_NOCOLOR: 'true'
ANSIBLE_FORCE_COLOR: 'false'
ANSIBLE_STDOUT_CALLBACK: community.general.diy
ANSIBLE_CALLBACK_DIY_PLAYBOOK_ON_START_MSG: "Sample output Sample playbook message"
Added DIY callback plugin (#432) * Added diy callback plugin * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Add diy callback plugin integration tests * Update tests\integration\targets\callback_diy\tasks\main.yml * Update tests\integration\targets\callback_diy\tasks\main.yml * Add tests/integration/targets/callback_diy/handlers/main.yml * Update tests/integration/targets/callback_diy/tasks/main.yml * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-06-15 20:06:52 +02:00
playbook: |
- hosts: testhost
gather_facts: false
tasks:
- name: Sample task name
debug:
msg: sample debug msg
expected_output: [
"Sample output Sample playbook message",
"",
"PLAY [testhost] ****************************************************************",
"",
"TASK [Sample task name] ********************************************************",
"ok: [testhost] => {",
" \"msg\": \"sample debug msg\"",
"}",
Added DIY callback plugin (#432) * Added diy callback plugin * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Add diy callback plugin integration tests * Update tests\integration\targets\callback_diy\tasks\main.yml * Update tests\integration\targets\callback_diy\tasks\main.yml * Add tests/integration/targets/callback_diy/handlers/main.yml * Update tests/integration/targets/callback_diy/tasks/main.yml * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-06-15 20:06:52 +02:00
"",
"PLAY RECAP *********************************************************************",
"testhost : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 "
Added DIY callback plugin (#432) * Added diy callback plugin * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Add diy callback plugin integration tests * Update tests\integration\targets\callback_diy\tasks\main.yml * Update tests\integration\targets\callback_diy\tasks\main.yml * Add tests/integration/targets/callback_diy/handlers/main.yml * Update tests/integration/targets/callback_diy/tasks/main.yml * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-06-15 20:06:52 +02:00
]
- name: Set playbook_on_play_start_msg callback using play variable
environment:
ANSIBLE_NOCOLOR: 'true'
ANSIBLE_FORCE_COLOR: 'false'
ANSIBLE_STDOUT_CALLBACK: community.general.diy
playbook: !unsafe |
Added DIY callback plugin (#432) * Added diy callback plugin * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Add diy callback plugin integration tests * Update tests\integration\targets\callback_diy\tasks\main.yml * Update tests\integration\targets\callback_diy\tasks\main.yml * Add tests/integration/targets/callback_diy/handlers/main.yml * Update tests/integration/targets/callback_diy/tasks/main.yml * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-06-15 20:06:52 +02:00
- name: Sample play name
hosts: testhost
gather_facts: false
vars:
ansible_callback_diy_playbook_on_play_start_msg: Sample output {{ ansible_callback_diy.play.name }}
Added DIY callback plugin (#432) * Added diy callback plugin * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Add diy callback plugin integration tests * Update tests\integration\targets\callback_diy\tasks\main.yml * Update tests\integration\targets\callback_diy\tasks\main.yml * Add tests/integration/targets/callback_diy/handlers/main.yml * Update tests/integration/targets/callback_diy/tasks/main.yml * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-06-15 20:06:52 +02:00
tasks:
- name: Sample task name
debug:
msg: sample debug msg
expected_output: [
"Sample output Sample play name",
"",
"TASK [Sample task name] ********************************************************",
"ok: [testhost] => {",
" \"msg\": \"sample debug msg\"",
"}",
Added DIY callback plugin (#432) * Added diy callback plugin * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Add diy callback plugin integration tests * Update tests\integration\targets\callback_diy\tasks\main.yml * Update tests\integration\targets\callback_diy\tasks\main.yml * Add tests/integration/targets/callback_diy/handlers/main.yml * Update tests/integration/targets/callback_diy/tasks/main.yml * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-06-15 20:06:52 +02:00
"",
"PLAY RECAP *********************************************************************",
"testhost : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 "
Added DIY callback plugin (#432) * Added diy callback plugin * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Add diy callback plugin integration tests * Update tests\integration\targets\callback_diy\tasks\main.yml * Update tests\integration\targets\callback_diy\tasks\main.yml * Add tests/integration/targets/callback_diy/handlers/main.yml * Update tests/integration/targets/callback_diy/tasks/main.yml * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-06-15 20:06:52 +02:00
]
- name: Set playbook_on_task_start_msg callback using play variable
environment:
ANSIBLE_NOCOLOR: 'true'
ANSIBLE_FORCE_COLOR: 'false'
ANSIBLE_STDOUT_CALLBACK: community.general.diy
playbook: !unsafe |
Added DIY callback plugin (#432) * Added diy callback plugin * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Add diy callback plugin integration tests * Update tests\integration\targets\callback_diy\tasks\main.yml * Update tests\integration\targets\callback_diy\tasks\main.yml * Add tests/integration/targets/callback_diy/handlers/main.yml * Update tests/integration/targets/callback_diy/tasks/main.yml * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-06-15 20:06:52 +02:00
- hosts: testhost
gather_facts: false
vars:
ansible_callback_diy_playbook_on_task_start_msg: Sample output {{ ansible_callback_diy.task.name }}
Added DIY callback plugin (#432) * Added diy callback plugin * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Add diy callback plugin integration tests * Update tests\integration\targets\callback_diy\tasks\main.yml * Update tests\integration\targets\callback_diy\tasks\main.yml * Add tests/integration/targets/callback_diy/handlers/main.yml * Update tests/integration/targets/callback_diy/tasks/main.yml * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-06-15 20:06:52 +02:00
tasks:
- name: Sample task name
debug:
msg: sample debug msg
expected_output: [
"",
"PLAY [testhost] ****************************************************************",
"Sample output Sample task name",
"ok: [testhost] => {",
" \"msg\": \"sample debug msg\"",
"}",
Added DIY callback plugin (#432) * Added diy callback plugin * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Add diy callback plugin integration tests * Update tests\integration\targets\callback_diy\tasks\main.yml * Update tests\integration\targets\callback_diy\tasks\main.yml * Add tests/integration/targets/callback_diy/handlers/main.yml * Update tests/integration/targets/callback_diy/tasks/main.yml * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-06-15 20:06:52 +02:00
"",
"PLAY RECAP *********************************************************************",
"testhost : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 "
Added DIY callback plugin (#432) * Added diy callback plugin * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Add diy callback plugin integration tests * Update tests\integration\targets\callback_diy\tasks\main.yml * Update tests\integration\targets\callback_diy\tasks\main.yml * Add tests/integration/targets/callback_diy/handlers/main.yml * Update tests/integration/targets/callback_diy/tasks/main.yml * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-06-15 20:06:52 +02:00
]
- name: Set playbook_on_task_start_msg callback using task variable
environment:
ANSIBLE_NOCOLOR: 'true'
ANSIBLE_FORCE_COLOR: 'false'
ANSIBLE_STDOUT_CALLBACK: community.general.diy
playbook: !unsafe |
Added DIY callback plugin (#432) * Added diy callback plugin * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Add diy callback plugin integration tests * Update tests\integration\targets\callback_diy\tasks\main.yml * Update tests\integration\targets\callback_diy\tasks\main.yml * Add tests/integration/targets/callback_diy/handlers/main.yml * Update tests/integration/targets/callback_diy/tasks/main.yml * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-06-15 20:06:52 +02:00
- hosts: testhost
gather_facts: false
tasks:
- name: Sample task name
debug:
msg: sample debug msg
vars:
ansible_callback_diy_playbook_on_task_start_msg: Sample output {{ ansible_callback_diy.task.name }}
Added DIY callback plugin (#432) * Added diy callback plugin * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Add diy callback plugin integration tests * Update tests\integration\targets\callback_diy\tasks\main.yml * Update tests\integration\targets\callback_diy\tasks\main.yml * Add tests/integration/targets/callback_diy/handlers/main.yml * Update tests/integration/targets/callback_diy/tasks/main.yml * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-06-15 20:06:52 +02:00
expected_output: [
"",
"PLAY [testhost] ****************************************************************",
"Sample output Sample task name",
"ok: [testhost] => {",
" \"msg\": \"sample debug msg\"",
"}",
Added DIY callback plugin (#432) * Added diy callback plugin * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Add diy callback plugin integration tests * Update tests\integration\targets\callback_diy\tasks\main.yml * Update tests\integration\targets\callback_diy\tasks\main.yml * Add tests/integration/targets/callback_diy/handlers/main.yml * Update tests/integration/targets/callback_diy/tasks/main.yml * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-06-15 20:06:52 +02:00
"",
"PLAY RECAP *********************************************************************",
"testhost : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 "
Added DIY callback plugin (#432) * Added diy callback plugin * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Add diy callback plugin integration tests * Update tests\integration\targets\callback_diy\tasks\main.yml * Update tests\integration\targets\callback_diy\tasks\main.yml * Add tests/integration/targets/callback_diy/handlers/main.yml * Update tests/integration/targets/callback_diy/tasks/main.yml * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-06-15 20:06:52 +02:00
]
- name: Set runner_on_ok_msg callback using task variable
environment:
ANSIBLE_NOCOLOR: 'true'
ANSIBLE_FORCE_COLOR: 'false'
ANSIBLE_STDOUT_CALLBACK: community.general.diy
playbook: !unsafe |
Added DIY callback plugin (#432) * Added diy callback plugin * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Add diy callback plugin integration tests * Update tests\integration\targets\callback_diy\tasks\main.yml * Update tests\integration\targets\callback_diy\tasks\main.yml * Add tests/integration/targets/callback_diy/handlers/main.yml * Update tests/integration/targets/callback_diy/tasks/main.yml * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-06-15 20:06:52 +02:00
- hosts: testhost
gather_facts: false
tasks:
- name: Sample task name
debug:
msg: sample debug msg
vars:
ansible_callback_diy_runner_on_ok_msg: Sample output {{ ansible_callback_diy.result.output.msg }}
Added DIY callback plugin (#432) * Added diy callback plugin * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Add diy callback plugin integration tests * Update tests\integration\targets\callback_diy\tasks\main.yml * Update tests\integration\targets\callback_diy\tasks\main.yml * Add tests/integration/targets/callback_diy/handlers/main.yml * Update tests/integration/targets/callback_diy/tasks/main.yml * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-06-15 20:06:52 +02:00
expected_output: [
"",
"PLAY [testhost] ****************************************************************",
"",
"TASK [Sample task name] ********************************************************",
"Sample output sample debug msg",
"",
"PLAY RECAP *********************************************************************",
"testhost : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 "
Added DIY callback plugin (#432) * Added diy callback plugin * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Add diy callback plugin integration tests * Update tests\integration\targets\callback_diy\tasks\main.yml * Update tests\integration\targets\callback_diy\tasks\main.yml * Add tests/integration/targets/callback_diy/handlers/main.yml * Update tests/integration/targets/callback_diy/tasks/main.yml * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-06-15 20:06:52 +02:00
]
- name: Set runner_on_failed_msg callback using task variable
environment:
ANSIBLE_NOCOLOR: 'true'
ANSIBLE_FORCE_COLOR: 'false'
ANSIBLE_STDOUT_CALLBACK: community.general.diy
Added DIY callback plugin (#432) * Added diy callback plugin * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Add diy callback plugin integration tests * Update tests\integration\targets\callback_diy\tasks\main.yml * Update tests\integration\targets\callback_diy\tasks\main.yml * Add tests/integration/targets/callback_diy/handlers/main.yml * Update tests/integration/targets/callback_diy/tasks/main.yml * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-06-15 20:06:52 +02:00
playbook: |
- hosts: testhost
gather_facts: false
tasks:
- name: Sample task name
debug:
msg: sample debug msg
failed_when: true
ignore_errors: true
vars:
ansible_callback_diy_runner_on_failed_msg: Sample output Sample failure message
expected_output: [
"",
"PLAY [testhost] ****************************************************************",
"",
"TASK [Sample task name] ********************************************************",
"Sample output Sample failure message",
"",
"PLAY RECAP *********************************************************************",
"testhost : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=1 "
Added DIY callback plugin (#432) * Added diy callback plugin * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Add diy callback plugin integration tests * Update tests\integration\targets\callback_diy\tasks\main.yml * Update tests\integration\targets\callback_diy\tasks\main.yml * Add tests/integration/targets/callback_diy/handlers/main.yml * Update tests/integration/targets/callback_diy/tasks/main.yml * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-06-15 20:06:52 +02:00
]
- name: Set runner_on_skipped_msg callback using task variable
environment:
ANSIBLE_NOCOLOR: 'true'
ANSIBLE_FORCE_COLOR: 'false'
ANSIBLE_STDOUT_CALLBACK: community.general.diy
playbook: !unsafe |
Added DIY callback plugin (#432) * Added diy callback plugin * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Add diy callback plugin integration tests * Update tests\integration\targets\callback_diy\tasks\main.yml * Update tests\integration\targets\callback_diy\tasks\main.yml * Add tests/integration/targets/callback_diy/handlers/main.yml * Update tests/integration/targets/callback_diy/tasks/main.yml * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-06-15 20:06:52 +02:00
- hosts: testhost
gather_facts: false
tasks:
- name: Sample task name
debug:
msg: sample debug msg
when: false
vars:
ansible_callback_diy_runner_on_skipped_msg: Sample output Skipped {{ ansible_callback_diy.task.name }}
Added DIY callback plugin (#432) * Added diy callback plugin * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Add diy callback plugin integration tests * Update tests\integration\targets\callback_diy\tasks\main.yml * Update tests\integration\targets\callback_diy\tasks\main.yml * Add tests/integration/targets/callback_diy/handlers/main.yml * Update tests/integration/targets/callback_diy/tasks/main.yml * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-06-15 20:06:52 +02:00
expected_output: [
"",
"PLAY [testhost] ****************************************************************",
"",
"TASK [Sample task name] ********************************************************",
"Sample output Skipped Sample task name",
"",
"PLAY RECAP *********************************************************************",
"testhost : ok=0 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 "
Added DIY callback plugin (#432) * Added diy callback plugin * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Add diy callback plugin integration tests * Update tests\integration\targets\callback_diy\tasks\main.yml * Update tests\integration\targets\callback_diy\tasks\main.yml * Add tests/integration/targets/callback_diy/handlers/main.yml * Update tests/integration/targets/callback_diy/tasks/main.yml * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-06-15 20:06:52 +02:00
]
- name: Set runner_item_on_ok_msg callback using task variable
environment:
ANSIBLE_NOCOLOR: 'true'
ANSIBLE_FORCE_COLOR: 'false'
ANSIBLE_STDOUT_CALLBACK: community.general.diy
playbook: !unsafe |
Added DIY callback plugin (#432) * Added diy callback plugin * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Add diy callback plugin integration tests * Update tests\integration\targets\callback_diy\tasks\main.yml * Update tests\integration\targets\callback_diy\tasks\main.yml * Add tests/integration/targets/callback_diy/handlers/main.yml * Update tests/integration/targets/callback_diy/tasks/main.yml * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-06-15 20:06:52 +02:00
- hosts: testhost
gather_facts: false
tasks:
- name: Sample task name
debug:
msg: sample debug msg {{ item }}
Added DIY callback plugin (#432) * Added diy callback plugin * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Add diy callback plugin integration tests * Update tests\integration\targets\callback_diy\tasks\main.yml * Update tests\integration\targets\callback_diy\tasks\main.yml * Add tests/integration/targets/callback_diy/handlers/main.yml * Update tests/integration/targets/callback_diy/tasks/main.yml * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-06-15 20:06:52 +02:00
loop:
- sample item 1
- sample item 2
- sample item 3
vars:
ansible_callback_diy_runner_item_on_ok_msg: Sample output Looping {{ ansible_callback_diy.result.output.msg }}
Added DIY callback plugin (#432) * Added diy callback plugin * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Add diy callback plugin integration tests * Update tests\integration\targets\callback_diy\tasks\main.yml * Update tests\integration\targets\callback_diy\tasks\main.yml * Add tests/integration/targets/callback_diy/handlers/main.yml * Update tests/integration/targets/callback_diy/tasks/main.yml * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-06-15 20:06:52 +02:00
expected_output: [
"",
"PLAY [testhost] ****************************************************************",
"",
"TASK [Sample task name] ********************************************************",
"Sample output Looping sample debug msg sample item 1",
"Sample output Looping sample debug msg sample item 2",
"Sample output Looping sample debug msg sample item 3",
"",
"PLAY RECAP *********************************************************************",
"testhost : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 "
Added DIY callback plugin (#432) * Added diy callback plugin * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Add diy callback plugin integration tests * Update tests\integration\targets\callback_diy\tasks\main.yml * Update tests\integration\targets\callback_diy\tasks\main.yml * Add tests/integration/targets/callback_diy/handlers/main.yml * Update tests/integration/targets/callback_diy/tasks/main.yml * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-06-15 20:06:52 +02:00
]
- name: Set runner_item_on_failed_msg callback using task variable
environment:
ANSIBLE_NOCOLOR: 'true'
ANSIBLE_FORCE_COLOR: 'false'
ANSIBLE_STDOUT_CALLBACK: community.general.diy
playbook: !unsafe |
Added DIY callback plugin (#432) * Added diy callback plugin * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Add diy callback plugin integration tests * Update tests\integration\targets\callback_diy\tasks\main.yml * Update tests\integration\targets\callback_diy\tasks\main.yml * Add tests/integration/targets/callback_diy/handlers/main.yml * Update tests/integration/targets/callback_diy/tasks/main.yml * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-06-15 20:06:52 +02:00
- hosts: testhost
gather_facts: false
tasks:
- name: Sample task name
debug:
msg: sample debug msg {{ item }}
Added DIY callback plugin (#432) * Added diy callback plugin * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Add diy callback plugin integration tests * Update tests\integration\targets\callback_diy\tasks\main.yml * Update tests\integration\targets\callback_diy\tasks\main.yml * Add tests/integration/targets/callback_diy/handlers/main.yml * Update tests/integration/targets/callback_diy/tasks/main.yml * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-06-15 20:06:52 +02:00
loop:
- sample item 1
- sample item 2
- sample item 3
failed_when: item == 'sample item 2'
ignore_errors: true
vars:
ansible_callback_diy_runner_item_on_failed_msg: Sample output Looping sample failure message
expected_output: [
"",
"PLAY [testhost] ****************************************************************",
"",
"TASK [Sample task name] ********************************************************",
"ok: [testhost] => (item=sample item 1) => {",
" \"msg\": \"sample debug msg sample item 1\"",
"}",
Added DIY callback plugin (#432) * Added diy callback plugin * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Add diy callback plugin integration tests * Update tests\integration\targets\callback_diy\tasks\main.yml * Update tests\integration\targets\callback_diy\tasks\main.yml * Add tests/integration/targets/callback_diy/handlers/main.yml * Update tests/integration/targets/callback_diy/tasks/main.yml * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-06-15 20:06:52 +02:00
"Sample output Looping sample failure message",
"ok: [testhost] => (item=sample item 3) => {",
" \"msg\": \"sample debug msg sample item 3\"",
"}",
2020-08-28 21:14:43 +02:00
[
# Apparently a bug was fixed in Ansible, as before it ran through with "All items completed"
"fatal: [testhost]: FAILED! => {\"msg\": \"All items completed\"}",
"fatal: [testhost]: FAILED! => {\"msg\": \"One or more items failed\"}",
2020-08-28 21:14:43 +02:00
],
"...ignoring",
Added DIY callback plugin (#432) * Added diy callback plugin * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Add diy callback plugin integration tests * Update tests\integration\targets\callback_diy\tasks\main.yml * Update tests\integration\targets\callback_diy\tasks\main.yml * Add tests/integration/targets/callback_diy/handlers/main.yml * Update tests/integration/targets/callback_diy/tasks/main.yml * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-06-15 20:06:52 +02:00
"",
"PLAY RECAP *********************************************************************",
"testhost : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=1 "
Added DIY callback plugin (#432) * Added diy callback plugin * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Add diy callback plugin integration tests * Update tests\integration\targets\callback_diy\tasks\main.yml * Update tests\integration\targets\callback_diy\tasks\main.yml * Add tests/integration/targets/callback_diy/handlers/main.yml * Update tests/integration/targets/callback_diy/tasks/main.yml * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-06-15 20:06:52 +02:00
]
- name: Set runner_item_on_skipped_msg callback using task variable
environment:
ANSIBLE_NOCOLOR: 'true'
ANSIBLE_FORCE_COLOR: 'false'
ANSIBLE_STDOUT_CALLBACK: community.general.diy
playbook: !unsafe |
Added DIY callback plugin (#432) * Added diy callback plugin * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Add diy callback plugin integration tests * Update tests\integration\targets\callback_diy\tasks\main.yml * Update tests\integration\targets\callback_diy\tasks\main.yml * Add tests/integration/targets/callback_diy/handlers/main.yml * Update tests/integration/targets/callback_diy/tasks/main.yml * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-06-15 20:06:52 +02:00
- hosts: testhost
gather_facts: false
tasks:
- name: Sample task name
debug:
msg: sample debug msg {{ item }}
Added DIY callback plugin (#432) * Added diy callback plugin * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Add diy callback plugin integration tests * Update tests\integration\targets\callback_diy\tasks\main.yml * Update tests\integration\targets\callback_diy\tasks\main.yml * Add tests/integration/targets/callback_diy/handlers/main.yml * Update tests/integration/targets/callback_diy/tasks/main.yml * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-06-15 20:06:52 +02:00
loop:
- sample item 1
- sample item 2
- sample item 3
when: item != 'sample item 2'
vars:
ansible_callback_diy_runner_item_on_skipped_msg: Sample output Looping Skipped {{ ansible_callback_diy.result.output.item }}
Added DIY callback plugin (#432) * Added diy callback plugin * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Add diy callback plugin integration tests * Update tests\integration\targets\callback_diy\tasks\main.yml * Update tests\integration\targets\callback_diy\tasks\main.yml * Add tests/integration/targets/callback_diy/handlers/main.yml * Update tests/integration/targets/callback_diy/tasks/main.yml * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-06-15 20:06:52 +02:00
expected_output: [
"",
"PLAY [testhost] ****************************************************************",
"",
"TASK [Sample task name] ********************************************************",
"ok: [testhost] => (item=sample item 1) => {",
" \"msg\": \"sample debug msg sample item 1\"",
"}",
Added DIY callback plugin (#432) * Added diy callback plugin * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Add diy callback plugin integration tests * Update tests\integration\targets\callback_diy\tasks\main.yml * Update tests\integration\targets\callback_diy\tasks\main.yml * Add tests/integration/targets/callback_diy/handlers/main.yml * Update tests/integration/targets/callback_diy/tasks/main.yml * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-06-15 20:06:52 +02:00
"Sample output Looping Skipped sample item 2",
"ok: [testhost] => (item=sample item 3) => {",
" \"msg\": \"sample debug msg sample item 3\"",
"}",
Added DIY callback plugin (#432) * Added diy callback plugin * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Add diy callback plugin integration tests * Update tests\integration\targets\callback_diy\tasks\main.yml * Update tests\integration\targets\callback_diy\tasks\main.yml * Add tests/integration/targets/callback_diy/handlers/main.yml * Update tests/integration/targets/callback_diy/tasks/main.yml * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-06-15 20:06:52 +02:00
"",
"PLAY RECAP *********************************************************************",
"testhost : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 "
Added DIY callback plugin (#432) * Added diy callback plugin * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Add diy callback plugin integration tests * Update tests\integration\targets\callback_diy\tasks\main.yml * Update tests\integration\targets\callback_diy\tasks\main.yml * Add tests/integration/targets/callback_diy/handlers/main.yml * Update tests/integration/targets/callback_diy/tasks/main.yml * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-06-15 20:06:52 +02:00
]
- name: Set playbook_on_stats_msg callback using play variable
environment:
ANSIBLE_NOCOLOR: 'true'
ANSIBLE_FORCE_COLOR: 'false'
ANSIBLE_STDOUT_CALLBACK: community.general.diy
playbook: !unsafe |
Added DIY callback plugin (#432) * Added diy callback plugin * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Add diy callback plugin integration tests * Update tests\integration\targets\callback_diy\tasks\main.yml * Update tests\integration\targets\callback_diy\tasks\main.yml * Add tests/integration/targets/callback_diy/handlers/main.yml * Update tests/integration/targets/callback_diy/tasks/main.yml * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-06-15 20:06:52 +02:00
- hosts: testhost
gather_facts: false
vars:
ansible_callback_diy_playbook_on_stats_msg: |+2
Sample output stats
===============================
{% for key in ansible_callback_diy.stats | sort %}
{% set color_one = "" %}
{% set color_two = "" %}
{% if ansible_callback_diy.stats[key] %}
{% if key == 'ok' %}
{% set prefix = ' ' %}
{% set suffix = ' ' %}
{% elif key == 'changed' %}
{% set prefix = ' ' %}
{% set suffix = ' ' %}
{% elif key == 'processed' %}
{% set prefix = ' ' %}
{% set suffix = ' ' %}
{% elif key == 'skipped' %}
{% set prefix = ' ' %}
{% set suffix = ' ' %}
{% else %}
{% set prefix = "" %}
{% set suffix = "" %}
{% endif %}
{{ color_one }}{{ "%s%s%s" | format(prefix,key,suffix) }}{{ color_two }}: {{ ansible_callback_diy.stats[key] | to_nice_yaml }}
{% endif %}
{% endfor %}
Added DIY callback plugin (#432) * Added diy callback plugin * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Add diy callback plugin integration tests * Update tests\integration\targets\callback_diy\tasks\main.yml * Update tests\integration\targets\callback_diy\tasks\main.yml * Add tests/integration/targets/callback_diy/handlers/main.yml * Update tests/integration/targets/callback_diy/tasks/main.yml * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-06-15 20:06:52 +02:00
tasks:
- name: Sample task name
debug:
msg: sample debug msg
expected_output: [
"",
"PLAY [testhost] ****************************************************************",
"",
"TASK [Sample task name] ********************************************************",
"ok: [testhost] => {",
" \"msg\": \"sample debug msg\"",
"}",
Added DIY callback plugin (#432) * Added diy callback plugin * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Add diy callback plugin integration tests * Update tests\integration\targets\callback_diy\tasks\main.yml * Update tests\integration\targets\callback_diy\tasks\main.yml * Add tests/integration/targets/callback_diy/handlers/main.yml * Update tests/integration/targets/callback_diy/tasks/main.yml * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-06-15 20:06:52 +02:00
" Sample output stats",
"===============================",
" ok : testhost: 1",
"",
" processed : testhost: 1"
]
- name: Suppress output on playbook_on_task_start_msg callback using task variable
environment:
ANSIBLE_NOCOLOR: 'true'
ANSIBLE_FORCE_COLOR: 'false'
ANSIBLE_STDOUT_CALLBACK: community.general.diy
Added DIY callback plugin (#432) * Added diy callback plugin * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Add diy callback plugin integration tests * Update tests\integration\targets\callback_diy\tasks\main.yml * Update tests\integration\targets\callback_diy\tasks\main.yml * Add tests/integration/targets/callback_diy/handlers/main.yml * Update tests/integration/targets/callback_diy/tasks/main.yml * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-06-15 20:06:52 +02:00
playbook: |
- hosts: testhost
gather_facts: false
tasks:
- name: Sample task name
debug:
msg: sample debug msg
vars:
ansible_callback_diy_playbook_on_task_start_msg: ''
expected_output: [
"",
"PLAY [testhost] ****************************************************************",
"ok: [testhost] => {",
" \"msg\": \"sample debug msg\"",
"}",
Added DIY callback plugin (#432) * Added diy callback plugin * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Add diy callback plugin integration tests * Update tests\integration\targets\callback_diy\tasks\main.yml * Update tests\integration\targets\callback_diy\tasks\main.yml * Add tests/integration/targets/callback_diy/handlers/main.yml * Update tests/integration/targets/callback_diy/tasks/main.yml * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-06-15 20:06:52 +02:00
"",
"PLAY RECAP *********************************************************************",
"testhost : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 "
Added DIY callback plugin (#432) * Added diy callback plugin * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Add diy callback plugin integration tests * Update tests\integration\targets\callback_diy\tasks\main.yml * Update tests\integration\targets\callback_diy\tasks\main.yml * Add tests/integration/targets/callback_diy/handlers/main.yml * Update tests/integration/targets/callback_diy/tasks/main.yml * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-06-15 20:06:52 +02:00
]
- name: Suppress output on runner_on_ok_msg callback using task variable
environment:
ANSIBLE_NOCOLOR: 'true'
ANSIBLE_FORCE_COLOR: 'false'
ANSIBLE_STDOUT_CALLBACK: community.general.diy
Added DIY callback plugin (#432) * Added diy callback plugin * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Add diy callback plugin integration tests * Update tests\integration\targets\callback_diy\tasks\main.yml * Update tests\integration\targets\callback_diy\tasks\main.yml * Add tests/integration/targets/callback_diy/handlers/main.yml * Update tests/integration/targets/callback_diy/tasks/main.yml * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-06-15 20:06:52 +02:00
playbook: |
- hosts: testhost
gather_facts: false
tasks:
- name: Sample task name
debug:
msg: sample debug msg
vars:
ansible_callback_diy_runner_on_ok_msg: ''
expected_output: [
"",
"PLAY [testhost] ****************************************************************",
"",
"TASK [Sample task name] ********************************************************",
"",
"PLAY RECAP *********************************************************************",
"testhost : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 "
Added DIY callback plugin (#432) * Added diy callback plugin * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Add diy callback plugin integration tests * Update tests\integration\targets\callback_diy\tasks\main.yml * Update tests\integration\targets\callback_diy\tasks\main.yml * Add tests/integration/targets/callback_diy/handlers/main.yml * Update tests/integration/targets/callback_diy/tasks/main.yml * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-06-15 20:06:52 +02:00
]
- name: Set runner_on_ok_msg_color using task variable
environment:
ANSIBLE_NOCOLOR: 'true'
ANSIBLE_FORCE_COLOR: 'false'
ANSIBLE_STDOUT_CALLBACK: community.general.diy
playbook: !unsafe |
Added DIY callback plugin (#432) * Added diy callback plugin * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Add diy callback plugin integration tests * Update tests\integration\targets\callback_diy\tasks\main.yml * Update tests\integration\targets\callback_diy\tasks\main.yml * Add tests/integration/targets/callback_diy/handlers/main.yml * Update tests/integration/targets/callback_diy/tasks/main.yml * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-06-15 20:06:52 +02:00
- hosts: testhost
gather_facts: false
tasks:
- name: Sample task name
debug:
msg: sample debug msg
vars:
ansible_callback_diy_runner_on_ok_msg: Sample output {{ ansible_callback_diy.result.output.msg }}
Added DIY callback plugin (#432) * Added diy callback plugin * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Add diy callback plugin integration tests * Update tests\integration\targets\callback_diy\tasks\main.yml * Update tests\integration\targets\callback_diy\tasks\main.yml * Add tests/integration/targets/callback_diy/handlers/main.yml * Update tests/integration/targets/callback_diy/tasks/main.yml * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-06-15 20:06:52 +02:00
ansible_callback_diy_runner_on_ok_msg_color: blue
expected_output: [
"",
"PLAY [testhost] ****************************************************************",
"",
"TASK [Sample task name] ********************************************************",
"Sample output sample debug msg",
Added DIY callback plugin (#432) * Added diy callback plugin * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Add diy callback plugin integration tests * Update tests\integration\targets\callback_diy\tasks\main.yml * Update tests\integration\targets\callback_diy\tasks\main.yml * Add tests/integration/targets/callback_diy/handlers/main.yml * Update tests/integration/targets/callback_diy/tasks/main.yml * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-06-15 20:06:52 +02:00
"",
"PLAY RECAP *********************************************************************",
"testhost : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 "
Added DIY callback plugin (#432) * Added diy callback plugin * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Add diy callback plugin integration tests * Update tests\integration\targets\callback_diy\tasks\main.yml * Update tests\integration\targets\callback_diy\tasks\main.yml * Add tests/integration/targets/callback_diy/handlers/main.yml * Update tests/integration/targets/callback_diy/tasks/main.yml * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py * Update plugins/callback/diy.py Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru> * Update plugins/callback/diy.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
2020-06-15 20:06:52 +02:00
]