summaryrefslogtreecommitdiff
path: root/testing/buildbot.yml
blob: 9ae341aacd2b5bfa09d479a0835add1b322a0f18 (plain)
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
# Ansible playbook to setup buildbot instance
# http://scons.org/wiki/InstallingBuildbotSlaves
#
# Send questions to:
#
#   anatoly techtonik <techtonik@gmail.com>
#
---
# host is overridable with --extra-vars 'host=address'
- hosts: "{{ host | default('localhost') }}"
  vars:
    - botuser: scons2
    - hgrc: /home/{{ botuser }}/.hgrc

  tasks:
  # --- install requirements ---
  - name: ubuntu/debian - make sure mercurial is installed
    apt: pkg=mercurial

  - name: create .hgrc if necessary
    file: path={{ hgrc }} owner={{ botuser }} state=touch
  - name: enable mercurial purge extension
    ini_file: dest={{ hgrc }} backup=yes
              section=extensions option=hgext.purge
              value=