We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Enhancement to Existing Feature
Currently ansible.controller.notification_template is not idempotent when notification_configuration contains encrypted fields.
name: 'Slack A' notification_type: slack organization: A notification_config: token: '$encrypted$', channels: - vvvv
It would be nice to have update_secrets parameter like ansible.controller.user module does, to make runs idempotent unless user is updating secrets.
Run
ansible -m ansible.controller.notification_template --args="name='Slack B' organization='B' notification_type=slack notification_configuration={'token':'aaaaaa','channels':['vvvvvv']}" localhost
and then
ansible -m ansible.controller.notification_template --args="name='Slack B' organization='B' notification_type=slack notification_configuration={'token':'$encrypted$','channels':['vvvvvv']}" localhost
localhost | CHANGED => { "changed": true, "id": 8, "name": "Slack B" }
localhost | CHANGED => { "changed": true, "id": 8 }
===> with update_secrets=false localhost | SUCCESS => { "changed": false, "id": 8 }
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Please confirm the following
Feature type
Enhancement to Existing Feature
Feature Summary
Currently ansible.controller.notification_template is not idempotent when notification_configuration contains encrypted fields.
It would be nice to have update_secrets parameter like ansible.controller.user module does, to make runs idempotent unless user is updating secrets.
Select the relevant components
Steps to reproduce
Run
ansible -m ansible.controller.notification_template --args="name='Slack B' organization='B' notification_type=slack notification_configuration={'token':'aaaaaa','channels':['vvvvvv']}" localhost
and then
ansible -m ansible.controller.notification_template --args="name='Slack B' organization='B' notification_type=slack notification_configuration={'token':'$encrypted$','channels':['vvvvvv']}" localhost
Current results
localhost | CHANGED => {
"changed": true,
"id": 8,
"name": "Slack B"
}
localhost | CHANGED => {
"changed": true,
"id": 8
}
Sugested feature result
localhost | CHANGED => {
"changed": true,
"id": 8,
"name": "Slack B"
}
===> with update_secrets=false
localhost | SUCCESS => {
"changed": false,
"id": 8
}
Additional information
No response
The text was updated successfully, but these errors were encountered: