imfreedom/bamboo-terraform

remove the installer and always start the agent
draft
2019-05-26, Gary Kramlich
10cdd0571af7
Parents e58899dfbce8
Children 8724ed5617d6
remove the installer and always start the agent
--- a/ansible/roles/pidgin.bamboo-agent/tasks/main.yml Sun May 26 00:16:09 2019 -0500
+++ b/ansible/roles/pidgin.bamboo-agent/tasks/main.yml Sun May 26 00:25:30 2019 -0500
@@ -105,6 +105,11 @@
become: yes
when: agent_home.changed
+# remove the installer
+- file:
+ name: "{{bamboo_jar}}"
+ state: absent
+
#- name: fix bamboo permissions
# file:
# owner: "{{bamboo_user}}"
@@ -113,11 +118,10 @@
# path: "{{bamboo_home}}"
# become: yes
-# now start the agent
+# now make sure the agent is running
- name: start bamboo-agent
systemd:
state: started
daemon_reload: yes
name: bamboo-agent
- when: agent_home.changed