openwisp / ansible-openwisp2

Ansible role that installs and upgrades OpenWISP.
https://openwisp.io/docs/dev/ansible/
BSD 3-Clause "New" or "Revised" License
476 stars 138 forks source link

[feature] Consent mechanism for clean insisghts statistics #452

Closed nemesifier closed 7 months ago

nemesifier commented 11 months ago

Depends on https://github.com/openwisp/openwisp-utils/issues/360.

We shall add a task which asks confirmation to the user to allow us to track some basic statistics which help us with applying for Open Source funding. We will need to clarify what statistics we collect (we can link to the README section of openwisp-utils added in https://github.com/openwisp/openwisp-utils/issues/360).

pandafy commented 10 months ago

@nemesifier vars_prompt in play and not in ansible roles

If you want your playbook to prompt the user for certain input, add a ‘vars_prompt’ section. Prompting the user for variables lets you avoid recording sensitive data like passwords. In addition to security, prompts support flexibility. For example, if you use one playbook across multiple software releases, you could prompt for the particular release version.

An alternative solution would be to show the message that the ansible role enabled clean insights measurement collection and user's can turn it off by setting a variable. We can have a timeout of 30 seconds for users.