If I install manually as follows:

  sudo apt-get install wireshark wireshark-common

No group wireshark is created, as I do not choose to set wireshark-
common/install-setuid in the dialog.

Afterwards, after I execute the following:

  sudo dpkg-reconfigure wireshark-common

and choose to set wireshark-common/install-setuid in the dialog, the
group is created automatically


* * *

If I install it with ansible as follows, the group wireshark is not
created:


- name: BASE - Install Wireshark Packages
  package:
    name:
      - wireshark
      - wireshark-common
      - wireshark-qt
  register: res_wireshark_installed

- name: BASE - Allow users in group 'wireshark' to capture packets
  ansible.builtin.debconf:
    name: wireshark-common
    question: wireshark-common/install-setuid
    value: 'true'
    vtype: boolean
  when:
    - res_wireshark_installed.changed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1919379

Title:
  debconf module: does not execute postinst

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ansible/+bug/1919379/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to