Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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