# mapping values are not allowed in this context

**URL:** <https://forum.ansible.com/t/mapping-values-are-not-allowed-in-this-context/35909>\
**Category:** Ansible Project\
**Created:** [October 22, 2021, 10:44am UTC](https://forum.ansible.com/t/mapping-values-are-not-allowed-in-this-context/35909 "2021-10-22T10:44:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yanni\_G](https://avatars.discourse-cdn.com/v4/letter/y/c2a13f/32.png) [@Yanni\_G](https://forum.ansible.com/u/Yanni_G)\
**Post date:** [October 22, 2021, 10:44am UTC](https://forum.ansible.com/t/mapping-values-are-not-allowed-in-this-context/35909/1 "2021-10-22T10:44:15Z")

</div>

Hello everyone

I had a small task that used to work fine but suddenly it gives me errors.

**FAILED! =\> {“msg”: “The conditional check ‘ACTION == "install"’ failed. The error was: error while evaluating conditional (ACTION == "install"): ‘ACTION’ is undefined\n\nThe error appears to be in ‘/etc/ansible/play/7zip.yml’: line 10, column 6, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n#\n - name: Installing 7zip\n ^ here\n”}**

Please see Yaml here:

[https://pastebin.com/7cbSyPJy](https://pastebin.com/7cbSyPJy)

Any suggestions I could try please. I did not change anything.

Thanks a lot
