Skip to content

Instantly share code, notes, and snippets.

@goyalmohit
Last active March 3, 2019 17:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goyalmohit/b97a441ac00f7ac1753aec1d0118b270 to your computer and use it in GitHub Desktop.
Save goyalmohit/b97a441ac00f7ac1753aec1d0118b270 to your computer and use it in GitHub Desktop.
Quick ansible playbook to download and setup liquibase
--- # 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