Execution
Date 20 Nov 2025 12:10:06 +0000
Duration 00:00:03.17
Controller ssh-gw-4.layershift.com
User root
Versions
Ansible 2.16.11
ara 1.7.3 / 1.7.3
Python 3.10.10
Summary
3 Hosts
3 Tasks
9 Results
1 Plays
1 Files
0 Records

Task result details

  • Status
    FAILED
  • Duration
    00:00:00.06
  • Play
    Playbook to make sshd changes
  • Task
    Check sshd status
  • Host
    a9

Field Value
msg
The conditional check 'sshd_config..status.ActiveState != "active"' failed. The error was: template error while templating string: expected name or number. String: {% if sshd_config..status.ActiveState != "active" %} True {% else %} False {% endif %}. expected name or number

The error appears to be in '/home/ssh-gateway/ansible/kuly/RM10193-sshd-config-changes.yaml': line 32, column 7, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:


    - name: Check sshd status
      ^ here