I have common issues in both checks, details see below.
Ansible and python versions I used in my checks:
System1: Ansible 2.5 with python 2.7
System2: Ansible 2.7, python with Python 3.6.
Errors:
TASK [T-Sec.LinuxOS.Compliance : req-013.2 combine found files with default whitelist] *******************************************************************
fatal: [localhost]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'stdout_lines'\n\nThe error appears to have been in '/home/ubuntu/TelekomSecurity.Compliance.Automation-master/T-Sec.LinuxOS.Compliance/tasks/hardening_linux(01)basic-hardening.yml': line 221, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: req-013.2 combine found files with default whitelist\n ^ here\n"}
TASK [T-Sec.SSH.Compliance : req-002.1 remove all primes smaller than defined value] *********************************************************************
fatal: [localhost]: FAILED! => {"msg": "The conditional check 'config_ssh_server and ssh_moduli.stdout != ""' failed. The error was: error while evaluating conditional (config_ssh_server and ssh_moduli.stdout != ""): 'dict object' has no attribute 'stdout'\n\nThe error appears to have been in '/home/ubuntu/TelekomSecurity.Compliance.Automation-master/T-Sec.SSH.Compliance/tasks/hardening_ssh(01)ssh-requirements.yml': line 17, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: req-002.1 remove all primes smaller than defined value\n ^ here\n"}