Closed john-westcott-iv closed 5 years ago
@john-westcott-iv getting the following error when executing the san_cron.yml test playbook:
PLAY [Test scan_cron - Python 2.7] *************************************************************************************************************
TASK [Load the test_1 crontab] *****************************************************************************************************************
Wednesday 21 August 2019 12:58:35 -0400 (0:00:00.071) 0:00:00.071 ******
Wednesday 21 August 2019 12:58:35 -0400 (0:00:00.071) 0:00:00.071 ******
[DEPRECATION WARNING]: Distribution fedora 30 on host localhost should use /usr/bin/python3, but is using /usr/bin/python for backward
compatibility with prior Ansible releases. A future Ansible release will default to using the discovered platform python for this host. See
https://docs.ansible.com/ansible/2.8/reference_appendices/interpreter_discovery.html for more information. This feature will be removed in
version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
ok: [localhost]
TASK [Validate that all cronjobs were loaded] **************************************************************************************************
Wednesday 21 August 2019 12:58:36 -0400 (0:00:00.615) 0:00:00.687 ******
Wednesday 21 August 2019 12:58:36 -0400 (0:00:00.615) 0:00:00.686 ******
fatal: [localhost]: FAILED! =>
msg: Incorrect type for fail_msg or msg, expected a string or list and got <class 'dict'>
PLAY RECAP *************************************************************************************************************************************
localhost : ok=1 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
Ok, take a look at this start and let me know what you think.