-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Nusenu:
> Ok, the problem seems to be that ansible probably runs status on
> the particular service before enabling it (to avoid unnecessary
> systemctl enable commands?).

actually the service module executes [1]:
systemctl is-enabled [email protected]

which should be fine.

Since there is no get_systemd_service_enabled() in my local service.py
(ansible 1.8.4) I guess this has been fixed in ansible >1.8.4?

One more reason to upgrade to 1.9..





[1]
https://github.com/ansible/ansible-modules-core/blob/devel/system/service.py#L486
-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJVHyVnAAoJEFv7XvVCELh0tK4QAIwWAp58tHUkr9XPrOk5lUIH
+gzZgfhdjaqkkdcG3J4kEef3cM1ekDZRdnQ7vCTclTmhQN4dj52PYa4R4tHmWica
Q/8v6CoNAvpxQic2+olC/gsfCIkebiPy3wVO4shvgzKCEkkXeY2kLC2ZQU7jDMQb
RGp9vZZzQF085buK7ZiApreNzottW8tpypBgRWxcnE/0qqkV6w78U4t6vJSzASsJ
Jrm1m3DlTAVW8VG6RU/V/i6NiON3695hE6KSkYlpKxMKPUeimsqoKKDmQ9gKa/RE
ySEvW1kaIfKYfpVTapWRLSowoVywQcWHYaNjsTJ9tVIZOQoyglWVcwh3dSSLHbAY
sngBoFVxBEowWHGHQbB2xpxx2R+C/ImStDIuKsr4/uxSW/GCWi98l/pp5QlWQZHM
YfA7eMeMGEKvU/Fi26s8PW980wh8ayGvmcX1dNkC2bOsRHJrOCAKHrPFDIxGefNF
O36mxyU3CM5fRv2lSt5jf7ycRMxUKurrlwWztr17wlo8C/2cqGrmm7mUMZUgBXMM
5ecFv0zM2trVYKZ1HgglKN7UlT+cxKkot8bKQ5RPe9DXBUn3QXL5tgmso8MU5ZSQ
JercZBLYNaQfdNb8F2AyMM6SHiZeJVm5ERXELGfvn/OFHYCD5YMgtRFpFMQceKv9
lgdYHkY19cHE/t+MKkrO
=IiOw
-----END PGP SIGNATURE-----

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/551F2568.6090600%40openmailbox.org.
For more options, visit https://groups.google.com/d/optout.

Reply via email to