buildkite_agent_allow_service_startup controls whether service should be started or not, but in case of Debian service is enabled in systemd, which leads to auto starts on reboots. Using same variable to control the systemd enable/disable as well.
Changes
Using buildkite_agent_allow_service_startup to control the enabled parameter of systemd unit for Debian systems.
buildkite_agent_allow_service_startup
controls whether service should be started or not, but in case ofDebian
service is enabled in systemd, which leads to auto starts on reboots. Using same variable to control the systemd enable/disable as well.Changes
Using
buildkite_agent_allow_service_startup
to control theenabled
parameter ofsystemd
unit for Debian systems.Verification
ansible-playbook .... --check