imfreedom/teamcity-ansible

Parents 0b63d4078ad9
Children 5742c7feddde
remove the default convey property for agents and allow overriding of agent names
--- a/roles/teamcity/defaults/main.yml Mon Nov 25 22:27:39 2019 -0600
+++ b/roles/teamcity/defaults/main.yml Sat Nov 30 23:14:53 2019 -0600
@@ -1,8 +1,9 @@
---
+teamcity_agent_name: "{{ansible_host}}"
teamcity_user: teamcity
teamcity_group: teamcity
teamcity_groups: []
teamcity_home: /var/lib/teamcity/
-teamcity_properties: ["system.convey=True"]
+teamcity_properties: []
teamcity_authorization_token:
--- a/roles/teamcity/tasks/agent.yml Mon Nov 25 22:27:39 2019 -0600
+++ b/roles/teamcity/tasks/agent.yml Sat Nov 30 23:14:53 2019 -0600
@@ -41,7 +41,7 @@
dest: "{{teamcity_agent_home}}conf/buildAgent.properties"
content: |
serverUrl={{teamcity_server}}
- name={{ansible_hostname}}
+ name={{teamcity_agent_name}}
workDir=../work
tempDir=../temp
systemDir=../system