imfreedom/bamboo-terraform

0c11bca95d1e
Parents c8df42004b14
Children 16d5b93c82a0
Fix the bamboo-agent directories and setup capabilities
--- a/ansible/roles/pidgin.bamboo-agent/tasks/main.yml Sun May 26 02:21:06 2019 -0500
+++ b/ansible/roles/pidgin.bamboo-agent/tasks/main.yml Sun May 26 02:21:32 2019 -0500
@@ -74,7 +74,7 @@
# create the agent home directory (mostly used for triggers)
- name: create bamboo's agent-home
file:
- name: "{{bamboo_agent_home}}"
+ name: "{{item}}"
state: directory
owner: "{{bamboo_user}}"
group: "{{bamboo_group}}"
@@ -84,6 +84,15 @@
- "{{bamboo_agent_home}}/bin"
register: agent_home
+# add our capabilities file (we do this ahead of time so it if this is a new
+# agent they'll be there right away.
+- name: install bamboo capabilities
+ copy:
+ dest: "{{bamboo_agent_home}}/bin/bamboo-capabilities.properties"
+ content: |
+ agent.Name = {{ ansible_hostname }}
+ system.builder.command.Convey = /usr/local/bin/convey
+
# download the jar
- name: get bamboo agent installer (as jar)
get_url: