Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ajgarlag/ansible-rollback
Ansible role to rollback web applications
https://github.com/ajgarlag/ansible-rollback
Last synced: 12 days ago
JSON representation
Ansible role to rollback web applications
- Host: GitHub
- URL: https://github.com/ajgarlag/ansible-rollback
- Owner: ajgarlag
- License: mit
- Created: 2015-05-06T18:25:47.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-03-03T06:39:11.000Z (over 1 year ago)
- Last Synced: 2024-10-11T13:12:21.581Z (about 1 month ago)
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
ajgarlag.rollback
=================Ansible role to rollback applications heavily inspired by [ansistrano](https://github.com/ansistrano/rollback).
Role Variables
--------------* **ajgarlag_rollback_path**: Path where the code has been deployed to (defaults to `{{ansible_env.HOME}}/project`).
### Role hooks
You can hook your own tasks files to the rollback process defining any of the following vars:
* **ajgarlag_rollback_before_setup_tasks_file**
* **ajgarlag_rollback_after_setup_tasks_file**
* **ajgarlag_rollback_before_symlink_tasks_file**
* **ajgarlag_rollback_after_symlink_tasks_file**
* **ajgarlag_rollback_before_cleanup_tasks_file**
* **ajgarlag_rollback_after_cleanup_tasks_file**To do it, you must define the desired var with the path to the tasks file:
```yml
ajgarlag_rollback_after_symlink_tasks_file: "{{ playbook_dir }}/tasks/after_symlink.yml"
```Example Playbook
----------------```yml
- hosts: all
vars:
ajgarlag_rollback_path: /var/www/application
roles:
- role: ajgarlag.rollback
```License
-------MIT
Author Information
------------------Developed with ♥ by [Antonio J. García Lagar](http://aj.garcialagar.es).