arnoudj / gocd_agent

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Go CD Agent

Master: Build Status
Develop: Build Status

This roles installs Go CD Agent.

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

ansible.cfg

This role is designed to work with merge "hash_behaviour". Make sure your ansible.cfg contains these settings

[defaults]
hash_behaviour = merge

Installation and Dependencies

This role has a "java" dependency. You can let this role install Oracle Java 7, or install it yourself and set gocd_agent.dependencies.skip_java to yes.

To install this role run ansible-galaxy install ansible-city.gocd_agent or add this to your roles.yml

- src: ansible-city.gocd_agent
  version: v1.0

and run ansible-galaxy install -p ./roles -r roles.yml

Tags

This role uses two tags: build and configure

  • build - Installs Go CD agent and all it's dependencies.
  • configure - Configure and ensures that the agents are running.

Examples

To simply install GO CD agent:

- name: Install GO CD Agent
  hosts: sandbox

  pre_tasks:
    - name: Update apt
      become: yes
      apt:
        cache_valid_time: 1800
        update_cache: yes
      tags:
        - build

  roles:
    - role: ansible-city.gocd_agent
      gocd_agent:
        server: IP.OR.URL.OF.THE.GOCD.SERVER

About

License:MIT License


Languages

Language:Makefile 50.7%Language:Ruby 49.3%