imfreedom/bamboo-terraform

Parents 7eb87026fdb8
Children e65cd5025b68
Split out the hg install to it's own role to install from pip and update bamboo to 6.9.2
--- a/ansible/roles/pidgin.bamboo-agent/tasks/main.yml Wed Jul 10 20:54:07 2019 -0500
+++ b/ansible/roles/pidgin.bamboo-agent/tasks/main.yml Mon Aug 26 06:48:45 2019 -0500
@@ -46,7 +46,6 @@
become: yes
apt:
name:
- - mercurial
- git
- openjdk-8-jre-headless
- qemu-user-static
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/ansible/roles/rwgrim.mercurial/tasks/main.yml Mon Aug 26 06:48:45 2019 -0500
@@ -0,0 +1,39 @@
+---
+- name: Install Dependencies
+ apt:
+ name:
+ - python
+ - libpython-dev
+ - python-pip
+ - python-setuptools
+ - gcc
+ state: present
+
+- name: remove mercurial package
+ apt:
+ name:
+ - mercurial
+ - mercurial-common
+ state: absent
+ purge: yes
+ force: yes
+
+- name: install mercurial and evolve
+ pip:
+ name:
+ - mercurial
+ - hg-evolve
+
+- name: create system config directory
+ file:
+ path: /etc/mercurial
+ state: directory
+ mode: '0755'
+
+- name: turn evolve on
+ copy:
+ dest: /etc/mercurial/hgrc
+ content: |
+ [extensions]
+ evolve =
+
--- a/ansible/worker.yml Wed Jul 10 20:54:07 2019 -0500
+++ b/ansible/worker.yml Mon Aug 26 06:48:45 2019 -0500
@@ -8,7 +8,8 @@
- role: rwgrim.convey
convey_version: 0.13.1
convey_sha256_checksum: c5f1d5c7d5da5ec61d325659e77e74a205f62929f2abca82b949c22164f2e5b6
+ - role: rwgrim.mercurial
- role: pidgin.bamboo-agent
bamboo_server: https://bamboo.pidgin.im/
- bamboo_version: 6.9.1
+ bamboo_version: 6.9.2
bamboo_groups: docker