Skip to content

Conversation

avbuben
Copy link

@avbuben avbuben commented Apr 30, 2020

Hello
When I run playbook on Debian 8 (jessie) then role failed:
TASK [../roles/wazuh-ansible/wazuh-ansible/roles/wazuh/ansible-wazuh-agent : Linux | Installing agent configuration (ossec.conf)] ********************************* Thursday 30 April 2020 15:16:20 +0300 (0:00:00.021) 0:00:10.704 ******** fatal: [stage8]: FAILED! => {"changed": false, "msg": "AnsibleUndefinedVariable: 'dict object' has no attribute 'stdout'"}
AnsibleUndefinedVariable: 'dict object' has no attribute 'stdout' - variable openscap_version_valid undefined, because task:
`

  • name: Debian/Ubuntu | Check OpenScap version
    shell: "dpkg --compare-versions '{{ openscap_version.stdout }}' '>=' '1.2'; echo $?"
    register: openscap_version_valid
    changed_when: false
    when: wazuh_agent_config.openscap.disable == 'no'
    tags:
    • config

`
because runs task only when: wazuh_agent_config.openscap.disable == 'no'
but by default variables wazuh_agent_config.openscap.disable == 'yes' and template isn't work for Debian 8 (jessie)

@manuasir manuasir self-requested a review May 4, 2020 12:18
@manuasir manuasir changed the base branch from master to devel May 4, 2020 12:18
@manuasir
Copy link
Contributor

manuasir commented May 4, 2020

Thanks for reporting this, we'll take a look ASAP.

@sergiogp98 sergiogp98 requested review from Zenidd and removed request for manuasir January 25, 2021 12:32
@sergiogp98 sergiogp98 self-assigned this Jan 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants