Open juliaschindler opened 6 days ago
if you turn off no_log and turn up verbosity it should show what it sees as a change
Thanks, I tried using -vvvvv
and controller_configuration_credentials_secure_logging: false
on two runs, but I was not able to see differences:
First run:
changed: [localhost] => (item=Create/Update Credential Test credential | Wait for finish the credential creation) => {
"__credentials_job_async_results_item": {
"__controller_credentials_item": {
"credential_type": "Machine",
"inputs": {
"password": "test1234",
"username": "myuser"
},
"name": "Test credential",
"organization": "myorg",
"state": "present",
"update_secrets": false
},
"ansible_job_id": "j519626111530.45220",
"ansible_loop_var": "__controller_credentials_item",
"changed": false,
"failed": 0,
"finished": 0,
"results_file": "/home/juliaschindler/.ansible_async/j519626111530.45220",
"started": 1
},
"ansible_job_id": "j519626111530.45220",
"ansible_loop_var": "__credentials_job_async_results_item",
"attempts": 3,
"changed": true,
"finished": 1,
"id": 14,
"invocation": {
"module_args": {
"controller_config_file": null,
"controller_host": "<hostname>",
"controller_oauthtoken": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"controller_password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"controller_username": "<adminuser>",
"copy_from": null,
"credential_type": "Machine",
"description": null,
"inputs": {
"password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"username": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER"
},
"name": "Test credential",
"new_name": null,
"organization": "myorg",
"request_timeout": null,
"state": "present",
"team": null,
"user": null,
"validate_certs": false
}
},
"results_file": "/home/juliaschindler/.ansible_async/j519626111530.45220",
"started": 1,
"stderr": "",
"stderr_lines": [],
"stdout": "",
"stdout_lines": []
}
second run:
ok: [localhost] => (item=Create/Update Credential Test credential | Wait for finish the credential creation) => {
"__credentials_job_async_results_item": {
"__controller_credentials_item": {
"credential_type": "Machine",
"inputs": {
"password": "test1234",
"username": "myuser"
},
"name": "Test credential",
"organization": "myorg",
"state": "present",
"update_secrets": false
},
"ansible_job_id": "j98685813622.45642",
"ansible_loop_var": "__controller_credentials_item",
"changed": false,
"failed": 0,
"finished": 0,
"results_file": "/home/juliaschindler/.ansible_async/j98685813622.45642",
"started": 1
},
"ansible_job_id": "j98685813622.45642",
"ansible_loop_var": "__credentials_job_async_results_item",
"attempts": 3,
"changed": false,
"finished": 1,
"id": 14,
"invocation": {
"module_args": {
"controller_config_file": null,
"controller_host": "<hostname>",
"controller_oauthtoken": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"controller_password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"controller_username": "<adminuser>",
"copy_from": null,
"credential_type": "Machine",
"description": null,
"inputs": {
"password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"username": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER"
},
"name": "Test credential",
"new_name": null,
"organization": "myorg",
"request_timeout": null,
"state": "present",
"team": null,
"user": null,
"validate_certs": false
}
},
"results_file": "/home/juliaschindler/.ansible_async/j98685813622.45642",
"started": 1,
"stderr": "",
"stderr_lines": [],
"stdout": "",
"stdout_lines": []
}
Summary
Setting up a credential in the AAP GUI and then running the credentials role with the same credential configured in controller_credentials and using "update_secrets: false" reports back "changed" on the first run, "ok" on rerun.
Issue Type
Ansible, Collection, Controller details
Desired Behavior
Setting up a credential in the AAP GUI and then running the credentials role with the same credential configured in controller_credentials and using "update_secrets: false" reports back "ok" on any run. This is the experienced behaviour with the users role, that has the same "update_secrets" parameter.
Actual Behavior
Setting up a credential in the AAP GUI and then running the credentials role with the same credential configured in controller_credentials and using "update_secrets: false" reports back "changed" on the first run, "ok" on rerun.
First playbook run after setting up the credential already in the AAP GUI:
On further runs:
STEPS TO REPRODUCE