[WARNING]: Removed restricted key from module data: ansible_facts = {'discovered_ ... thon'}
About Ansible
Which version of Ansible are you running?
2.9.27 (latest available in the 2.9 release suitable for RHEL).
DEFAULT_CALLBACK_WHITELIST(/etc/ansible/ansible.cfg) = [u'profile_tasks', u'log_plays', u'timer'] DEFAULT_FORKS(/etc/ansible/ansible.cfg) = 20 DEFAULT_HASH_BEHAVIOUR(/etc/ansible/ansible.cfg) = merge DEFAULT_STDOUT_CALLBACK(/etc/ansible/ansible.cfg) = skippy DEFAULT_TIMEOUT(/etc/ansible/ansible.cfg) = 100 DISPLAY_SKIPPED_HOSTS(/etc/ansible/ansible.cfg) = False HOST_KEY_CHECKING(/etc/ansible/ansible.cfg) = False
Is your version of Ansible patched in any way?
No
Are you running with any custom modules, or module_utils loaded?
No
About Mitogen
Version
0.2.10
Have you tried the latest master version from Git?
No
Do you have some idea of what the underlying problem may be?
No
About the issue
Mention your host and target OS and versions
localhost, running RHEL 7 or RHEL 8.
Mention your host and target Python versions
RHEL 7: 2.7.5 (standard RHEL 7 version) RHEL 8: 3.6.8 (standard RHEL 8 version)
Steps to reproduce
Playbook:
---
- hosts: all
tasks:
- stat:
path: /etc/passwd
delegate_to: "{{ groups['all'][0] }}"
- debug:
msg: foo bar
Enable Mitogen 0.2.10 and run the playbook as follows: ansible-playbook -i 'localhost,' test.yml
Actual result
PLAY [all] **********************************************************************************************************************************************************************************************************************************
Thursday 25 November 2021 10:52:06 +0100 (0:00:00.131) 0:00:00.131 *****
TASK [Gathering Facts] **********************************************************************************************************************************************************************************************************************
ok: [localhost]
Thursday 25 November 2021 10:52:13 +0100 (0:00:06.311) 0:00:06.442 *****
TASK [stat] *********************************************************************************************************************************************************************************************************************************
ok: [localhost -> localhost]
[WARNING]: Removed restricted key from module data: ansible_facts = {u'discovered ... thon'}
Thursday 25 November 2021 10:52:13 +0100 (0:00:00.214) 0:00:06.656 *****
TASK [debug] ********************************************************************************************************************************************************************************************************************************
ok: [localhost] => {
"msg": "foo bar"
}
Expected result
The same without the warning
Still seeing this on 0.3.22. Compared to running without mitogen I do indeed see an empty (empty dict) ansible_facts in the response.