hoborglabs / ansible_gocd_agent

GO CD Agent
0 stars 0 forks source link

GO CD Agent

This roles installs GO CD agent.

For more information about GO CD please visit go.cd/.

Example Playbook

To simply install GO CD agent:

- name: Install GO CD Agent
  hosts: sandbox

  roles:
    - gocd_agent

A bit more advanced playbook to install named agent with some additional packages needed for builds:

- name: Install GO CD PHP Agent
  hosts: sandbox

  vars:
    gocd_agent:
      version: "14.4.*"
      server: 10.1.1.234
      name: php
      agent_max_mem: 1024m
      agent_mem: 256m

  roles:
    - gocd_agent

  tasks:
    - name: Install dev packages required for PHP builds
      sudo: yes
      apt:
        name: "{{ item }}"
        state: present
      with_items:
        - awscli
        - php5-cli
        - git