Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Systemd module behavior differs from systemd when enabling services #46744
Actions that systemd module takes when enabling/disabling a service differ from the actions that calling systemctl from console produces.
OS / ENVIRONMENT
Ansible versions tested:
Hosts being managed were Fedora 28 and CentOS 7.
STEPS TO REPRODUCE
Run the following playbook (we assume here that
- hosts: all become: yes tasks: - name: start tftp server service: name: tftp enabled: yes
Relevant systemd units:
Running the sample playbook against this host outputs:
Ansible reported no change, which is not right, since it should enable
And this is the status output after that command:
As can be seen from the output, enabling
Ansible fails to perform this because it interprets the indirect state of the
I noticed this bug when tftp server stopped responding after the reboot.