forked from angrox/ansible-role-vsts-agent
-
Notifications
You must be signed in to change notification settings - Fork 6
/
main.yml
59 lines (46 loc) · 1.44 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
---
# Defaults configs for stone-payments.win-vsts-agent
vsts_agent_arch: x64
vsts_agent_version: 2.206.1
vsts_agent_baseurl: "https://vstsagentpackage.azureedge.net/agent"
# Pass true to uninstall VSTS agent
vsts_remove: false
# Pass true to reinstall VSTS agent
vsts_reinstall: false
# Pass true to reconfigure VSTS agent
vsts_reconfigure: false
# Specific configs
vsts_accountname: ""
vsts_accesstoken: ""
vsts_projectname: ""
vsts_agent_name: "{{ inventory_hostname }}"
# To use Agent pool (queue agent).
vsts_poolname: ""
# To use Deployment Group
vsts_deploymentgroupname: ""
# To use Environment
vsts_environmentname: ""
# Configure proxy address
vsts_proxyurl: ""
vsts_proxy_username: ""
vsts_proxy_password: ""
vsts_proxy_bypass: ""
# Configure default tags per resource type
vsts_virtualmachineresourcetags: ""
vsts_deploymentgrouptags: ""
# Specific Environment variables for agent
vsts_environment_variables: []
# Specific Windows user account to run the service.
vsts_windows_account: "NT AUTHORITY\\SYSTEM"
vsts_windows_account_password: ""
vsts_windows_service_name: "vstsagent.{{ vsts_accountname }}"
# Specific Linux user to run the service.
vsts_agent_user: "vsts"
# Specific Linux SUDO permissions.
vsts_sudo_permissions:
- /bin/systemctl reload vsts-agent
- /bin/systemctl status vsts-agent
- /bin/systemctl start vsts-agent
- /bin/systemctl restart vsts-agent
- /bin/systemctl stop vsts-agent
- /bin/systemctl daemon-reload