ansible/ansible — pull request #2456 by zecrazytux (2013-03-19 17:55:39+00:00)
Title: New debconf module that can be used for preseed package installation or ...

...package reconfiguration on Debian systems

* calls debconf-set-selections to set config
* checks for changes using debconf-get-selections (requires debconf-utils on target node), so that status/color is adequate
* optionnaly calls dpkg-reconfigure for the targetted package (on by default)

example:

- name: configure roundcube
debconf: pkg=roundcube keys='$FILE(roundcube)'

roundcube file:

roundcube/language select en_US

Comments appreciated, I'm not used to python. Also, not related to Ansible but if you try it for changing timezone settings (tzdata), it might keep old settings. No idea why (debconf issue).

Thanks