Comment 2 for bug 1989014

Revision history for this message
Ludmil Miltchev (ludmilmm) wrote :

Thank you for your quick reply @Paride Legovini!

I didn't realize that snmptrapd is socket activated now in Ubuntu 22.04. I have a Jenkins job that is run on a schedule to see if certain services are enabled. This is an example (part of the Ansible playbook that I am using):

- name: Check enabled services on Ubuntu and Debian
  command: systemctl is-enabled {{ item }}
  with_items:
   - apache2
   - mysql
   - cron
   - snmptt
   - snmptrapd
  when: ansible_os_family == "Debian"

It used to work with the older versions of Ubuntu, but it fails now in Ubuntu 22.04.

Thanks!