Last active
March 3, 2019 17:13
-
-
Save goyalmohit/b97a441ac00f7ac1753aec1d0118b270 to your computer and use it in GitHub Desktop.
Quick ansible playbook to download and setup liquibase
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- # Quick ansible playbook for downloading liquibase | |
- name: download liquibase using ansible | |
hosts: dbservers | |
connection: ssh | |
sudo: yes | |
user: user | |
tasks: | |
- name: Create liquibase directory | |
file: | |
name: /opt/liquibase | |
state: directory | |
mode: 0755 | |
- name: install liquibase | |
unarchive: | |
src: https://github.com/liquibase/liquibase/releases/download/liquibase-parent-{{ liquibase_version }}/liquibase-{{ liquibase_version }}-bin.tar.gz | |
dest: /opt/liquibase | |
copy: no | |
mode: 0755 | |
creates: /opt/liquibase/liquibase | |
- name: add liquibase to PATH | |
raw: PATH=/opt/liquibase:$PATH |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment