Execution
Date 14 Apr 2025 14:49:38 +0100
Duration 00:00:01.22
Controller ssh-gw-4.layershift.com
User root
Versions
Ansible 2.16.11
ara 1.7.2 / 1.7.2
Python 3.10.10
Summary
2 Hosts
2 Tasks
3 Results
1 Plays
1 Files
0 Records

Task result details

  • Status
    FAILED
  • Duration
    00:00:00.06
  • Play
    Playbook to add rules and verify them
  • Task
    Debug the result
  • Host
    kvm2-dev

Field Value
msg
The conditional check 'result.rc = '1'' failed. The error was: template error while templating string: expected token 'end of statement block', got '='. String: {% if result.rc = '1' %} True {% else %} False {% endif %}. expected token 'end of statement block', got '='

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

The offending line appears to be:

      changed_when: false
    - name: Debug the result
      ^ here