An open API service indexing awesome lists of open source software.

https://github.com/danihodovic/ansible-samson

Ansible modules for Samson
https://github.com/danihodovic/ansible-samson

ansible ansible-module ansible-role automation deployments samson

Last synced: 3 months ago
JSON representation

Ansible modules for Samson

Awesome Lists containing this project

README

          

# Ansible modules for Samson

![Build Status](https://travis-ci.org/danihodovic/ansible-samson.svg?branch=master)

This role contains modules to simplify working with
[Samson](https://github.com/zendesk/samson).

It supports:

- environments
- deploy groups
- projects
- stages
- commands

### Installation
```
ansible-galaxy install danihodovic.samson
```

### Example Playbook

```yml
---
- name: Samson
hosts: localhost
roles:
- danihodovic.samson
vars:
samson_url: https://samson.mycompany.org
# Hide this in the Ansible vault or pass it through the environment instead
# of checking it in as plaintext
samson_token: 967c19e2e223682d232935661f0675b0ddd4930f9e77ce32cad51bc65b24bbbc
tasks:
- name: Create dotfiles project
register: project
samson_project:
url: '{{ samson_url }}'
token: '{{ samson_token }}'
permalink: dotfiles
name: dotfiles
repository_url: https://github.com/danihodovic/.dotfiles

- name: Create deployment command
register: command
samson_command:
url: '{{ samson_url }}'
token: '{{ samson_token }}'
project_id: '{{ project.project.id }}'
command: |
echo "deploying my project!"

- name: Create staging
samson_stage:
url: '{{ samson_url }}'
token: '{{ samson_token }}'
name: staging
permalink: staging
project_permalink: '{{ project.project.permalink }}'
command_ids:
- '{{ command.command.id }}'
```

License
-------

MIT

### Author Information

This role is created and maintained by Dani Hodovic.