override "changed:" variable from within a shell?

Hi,

It’s possible to change the outcome (RC) of a shell command with the exit command, but is there a way to override the changed-variable?
command: sh -c “[ ! -h /etc/ldap.conf -a -e /etc/ldap.conf ] && mv /etc/ldap.conf /etc/ldap.conf.orig || exit 0”

PJ

There have been a few proposals to provide a parameter to the command module like “changed_rc” that accepted a range of return codes that would be interpreted as unchanged/changed or so, but nothing yet that supported a range of return codes.

You can choose to not key off the changed attribute and instead do a conditional based on the rc or output.