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
- Host: GitHub
- URL: https://github.com/danihodovic/ansible-samson
- Owner: danihodovic
- License: mit
- Created: 2019-02-07T10:17:33.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-05-22T08:30:40.000Z (about 5 years ago)
- Last Synced: 2024-12-27T21:33:52.765Z (over 1 year ago)
- Topics: ansible, ansible-module, ansible-role, automation, deployments, samson
- Language: Python
- Size: 145 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ansible modules for Samson

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.