You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- name: check if an authorized_key change is neededauthorized_key:
user: gregorykey: ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQB2tZ7l62JQCTgr88sZseQp6L7syhg+a7 Gregorycheck_mode: trueregister: authkey_change
- name: check if a group change is needed for a useruser:
name: gregorygroup: gregorycheck_mode: trueregister: group_change
- debug:
var: authkey_change
- debug:
var: group_change
EXPECTED RESULTS
I would expect that the authkey_change variable contains the return values from the authorized_key task, like the group_change does have from the user task.
ACTUAL RESULTS
The authorized_key module does not have any return values in checking_mode.
I have a patch for this but I'm waiting on another PR to merge to get the new docs fragments directory structure in place. Should be able to get the PR in tomorrow.
maxamillion
added a commit
to maxamillion/ansible.posix
that referenced
this issue
Jun 19, 2020
Prevously check_mode would incorrectly return changed=False even when a
change would have taken place if ran without check_mode, with
integration tests that confirmed this incorrect behavior. Also the
module did not correctly populate the return values when run in
check_mode. Both of these issues are resolved in this PR.
Fixesansible-collections#37
Signed-off-by: Adam Miller <[email protected]>
maxamillion
added a commit
to maxamillion/ansible.posix
that referenced
this issue
Jun 19, 2020
Previously check_mode would incorrectly return changed=False even when a
change would have taken place if ran without check_mode, with
integration tests that confirmed this incorrect behavior. Also the
module did not correctly populate the return values when run in
check_mode. Both of these issues are resolved in this PR.
Fixesansible-collections#37
Signed-off-by: Adam Miller <[email protected]>
SUMMARY
When I run a task using the authorized_key module in checking_mode and register the result, it does not contain any return values.
ISSUE TYPE
COMPONENT NAME
authorized_key
ANSIBLE VERSION
STEPS TO REPRODUCE
EXPECTED RESULTS
I would expect that the authkey_change variable contains the return values from the
authorized_key
task, like the group_change does have from theuser
task.ACTUAL RESULTS
The authorized_key module does not have any return values in checking_mode.
The text was updated successfully, but these errors were encountered: