Skip to content
This repository has been archived by the owner on Feb 20, 2020. It is now read-only.

Using correct service manager to handle goagents. #52

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion roles/agent/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
when: gocd_tmp_new_agent.changed

- name: Ensure Go-agents are not running yet (waiting for server config), but are enabled on startup.
service: "name=go-agent{{ item }} state=stopped enabled=yes"
service: "name=go-agent{{ item }} state=stopped enabled=yes use=service"
become: yes
notify: restart all agents
with_sequence: "count={{ GOCD_AGENT_INSTANCES }}"
Expand Down