[Bug 1919379] Re: debconf module: does not execute postinst

2021-03-18 Thread Nafallo Bjälevik
Indeed. The debconf module only populate the debconf database, which you
can do before the package is installed. It's not the intent of the
debconf module to take any further actions.

** Changed in: ansible (Ubuntu)
   Status: New => Invalid

-- 
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

[Bug 1919379] Re: debconf module: does not execute postinst

2021-03-17 Thread Bernie Hoeneisen
Actually swapping the two tasks as follows serves as fair workaround the
problem I faced. Thanks a lot for the hint!


- 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

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

-- 
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

[Bug 1919379] Re: debconf module: does not execute postinst

2021-03-17 Thread Bernie Hoeneisen
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

[Bug 1919379] Re: debconf module: does not execute postinst

2021-03-17 Thread Nafallo Bjälevik
Could you confirm you ran the debconf module before you
installed/upgraded wireshark, as the postinst won't run just because the
debconf database gets updated.

-- 
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