{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/19278","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/19278/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/19278/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/19278/events","html_url":"https://github.com/ansible/ansible/issues/19278","id":195204612,"number":19278,"title":"When parameter uses no_log=True, the content of parameter obfuscate also other paramter values","user":{"login":"machacekondra","id":3384302,"avatar_url":"https://avatars.githubusercontent.com/u/3384302?v=3","gravatar_id":"","url":"https://api.github.com/users/machacekondra","html_url":"https://github.com/machacekondra","followers_url":"https://api.github.com/users/machacekondra/followers","following_url":"https://api.github.com/users/machacekondra/following{/other_user}","gists_url":"https://api.github.com/users/machacekondra/gists{/gist_id}","starred_url":"https://api.github.com/users/machacekondra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/machacekondra/subscriptions","organizations_url":"https://api.github.com/users/machacekondra/orgs","repos_url":"https://api.github.com/users/machacekondra/repos","events_url":"https://api.github.com/users/machacekondra/events{/privacy}","received_events_url":"https://api.github.com/users/machacekondra/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-13T09:42:32Z","updated_at":"2016-12-13T09:50:04Z","closed_at":null,"body":"<!---\r\nPlease verify first that your issue/request is not already reported in GitHub\r\n-->\r\n\r\n\r\n##### ISSUE TYPE\r\n<!--- Pick one below and delete the rest: -->\r\n - Bug Report\r\n\r\n##### COMPONENT NAME\r\n<!--- Name of the module/plugin/task/feature -->\r\nno_log\r\n\r\n##### ANSIBLE VERSION\r\n<!--- Paste verbatim output from “ansible --version” between quotes below -->\r\n```\r\nansible 2.2\r\n```\r\n\r\n##### CONFIGURATION\r\n<!---\r\nMention any settings you have changed/added/removed in ansible.cfg\r\n(or using the ANSIBLE_* environment variables).\r\n-->\r\n\r\n##### OS / ENVIRONMENT\r\n<!---\r\nMention the OS you are running Ansible from, and the OS you are\r\nmanaging, or say “N/A” for anything that is not platform-specific.\r\n-->\r\n\r\n##### SUMMARY\r\n<!--- Explain the problem briefly -->\r\nWhen there is a module which accept some parameter, which has set `no_log=True` and we provide a value for this parameter, then this value is replaced with *** also for other parameters, for example let's say we have a playbook like this:\r\n\r\n```yaml\r\nmy_module:\r\n  url: myurl.com\r\n  user: admin\r\n  password: admin\r\n```\r\n\r\nIf the password in the module is defined as `no_log=True`, then the output of this task will be:\r\n\r\n```json\r\nchanged: [localhost] => {\r\n    \"ansible_facts\": {\r\n        \"ovirt_auth\": {\r\n            \"url\": \"myurl.com\"\r\n        }\r\n    }, \r\n    \"invocation\": {\r\n        \"module_args\": {\r\n            \"password\": \"VALUE_SPECIFIED_IN_NO_LOG_PARAMETER\", \r\n            \"username\": \"********\"\r\n        }, \r\n        \"module_name\": \"ovirt_auth\"\r\n    }\r\n}\r\n```\r\n\r\nAs you can see the `username` parameter contains `********`, but there is no reason to obfuscate then, and it can actually cause issuess, if the username should be reused."},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/266694016","html_url":"https://github.com/ansible/ansible/issues/19278#issuecomment-266694016","issue_url":"https://api.github.com/repos/ansible/ansible/issues/19278","id":266694016,"user":{"login":"machacekondra","id":3384302,"avatar_url":"https://avatars.githubusercontent.com/u/3384302?v=3","gravatar_id":"","url":"https://api.github.com/users/machacekondra","html_url":"https://github.com/machacekondra","followers_url":"https://api.github.com/users/machacekondra/followers","following_url":"https://api.github.com/users/machacekondra/following{/other_user}","gists_url":"https://api.github.com/users/machacekondra/gists{/gist_id}","starred_url":"https://api.github.com/users/machacekondra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/machacekondra/subscriptions","organizations_url":"https://api.github.com/users/machacekondra/orgs","repos_url":"https://api.github.com/users/machacekondra/repos","events_url":"https://api.github.com/users/machacekondra/events{/privacy}","received_events_url":"https://api.github.com/users/machacekondra/received_events","type":"User","site_admin":false},"created_at":"2016-12-13T09:50:04Z","updated_at":"2016-12-13T09:50:04Z","body":"@jniederm"}}
{"actor":{"display_login":"machacekondra"}}