To be honest, I'm not sure. When running the playbook with the --verbose flag the login task shows ok but sid shows "null".
Here is my full output:
PLAY [firewalls] ********************************************************************
TASK [Gathering Facts] **************************************************************
ok: [127.0.0.1]
TASK [login] ************************************************************************
ok: [127.0.0.1] => {"changed": false, "response": {"domain": null, "fingerprint": "002451E2D9743CDACC8F7178761FAE4C017AB039", "sid": null, "url": "10.99.81.101:443"}}
TASK [logout] ***********************************************************************
fatal: [127.0.0.1]: FAILED! => {"changed": false, "msg": "Command 'logout None' failed with error message: Missing header: [X-chkp-sid]. All changes are discarded and the session is invalidated."}
to retry, use: --limit @/home/simand/ansible_platform/cp_test.retry
PLAY RECAP **************************************************************************
127.0.0.1 : ok=2 changed=0 unreachable=0 failed=1