Skip to content
This repository was archived by the owner on Aug 24, 2020. It is now read-only.

T-Sec.LinuxOS.Compliance : req-013.2 and T-Sec.SSH.Compliance : req-002.1 issue: The error was: 'dict object' has no attribute 'stdout_lines' #1

@hodigy

Description

@hodigy

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"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions