Hi list, I am new to this Ansible world. I am using a playbook from sandersv32/cis rhel-7-ansible section-5.2.2 which is giving me an error "VARIABLE NOT DEFINED’. Here is the task I am running
-name: 5.2.2 Enable auditd Service (Scored)
shell: systemctl is-enabled auditd.service
register: section5_2_2
-debug var=section5_2_2.stdout
ignore_errors: True
tags:
-
scored
-
section5.2
-
section5.2.2
-
name: 5.2.2 Enable auditd Service (Scored)
service: >
name=auditd
enabled=yes
state=running
when: “‘enabled’ not in section5_2_2.stdout”
tags:
-
scored
-
section5.2
-
section5.2.2
This is the result, if I can get some help resolving this , will appreciate it
Sincerely
ZS