Majic Projects
Majic Ansible Roles
Go to the previous open issue
Go to the previous issue (open or closed)
star_faded.png
Please log in to bookmark issues
icon_project.png Majic Ansible Roles / Closed Enhancement MAR-45 Implement workaround for broken systemctl is-enabled handling in Debian Jessie
Go to the next issue (open or closed)
Go to the next open issue
This issue has been closed with status "Closed" and resolution "RESOLVED".
Issue basics
  • Type of issue
    Enhancement
  • Category
    General
  • Targetted for
    1.0.0
  • Status
    Closed
  • Progress
  • Priority
    Needs to be fixed
User pain
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
Affected by this issue (0)
There are no items
People involved
Times and dates
  • Posted at
  • Last updated
  • Estimated time
    4 hours
  • Time spent
    No time spent
    Click here to see time logged against this issue
Issue details
  • Resolution
    RESOLVED
Attachments (0)
There is nothing attached to this issue
Duplicate issues (0)
This issue does not have any duplicates
Description
Currently the way services are enabled throughout the Majic Ansible Roles is via Ansible's service module. Unfortunately, Debian has broken handling in conjunction with systemctl is-enabled command and SysV-style init scripts (it does not work at all).

The issue on Debian side is being tracked at:
* https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=751638 (original issue report)
* https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=809405 (issue report requesting the backport/rewrite to stable)

On Ansible side, related issue can be tracked at:
* https://github.com/ansible/ansible-modules-core/issues/915

For now the workaround could be to use the service module for starting the service, and having a couple of custom tasks for enabling the service manually. Probably a combination of **update-rc.d -n blah enable/disable** (for detecting state) and **update-rc.d blah enable/disable** would help.

Current list of services that need to be enabled this way (to be expanded):

* mysql
* ferm
* slapd
* prosody
* ClamAV
* Postfix
* Dovecot
* MariaDB
Todos (0 / 0)
Issue created