Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with command module while using Ansible 2.9 #11

Open
pothedarsuhas opened this issue Feb 7, 2020 · 0 comments
Open

Error with command module while using Ansible 2.9 #11

pothedarsuhas opened this issue Feb 7, 2020 · 0 comments

Comments

@pothedarsuhas
Copy link

  • name: Generate updated grub2.cfg
    command: grub2-mkconfig -o /etc/grub2.cfg
    when: result|changed ####### this line seems to be the error

fatal: [xx.xx.xxx.x]: FAILED! => {"msg": "The conditional check 'result|changed' failed. The error was: template error while templating string: no filter named 'changed'. String: {% if result|changed %} True {% else %} False {% endif %}\n\nThe error appears to be in '/root/potheba/provisioning-onprem/kubernetes/cluster-build/ansible/roles/disable-swap/tasks/main.yml': line 29, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Generate updated grub2.cfg\n ^ here\n"}

when using result|changed filter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant