xppl/ansible/roles/rqlite/tasks/main.yml

20 lines
415 B
YAML
Raw Normal View History

2018-11-30 22:45:13 +01:00
---
- name: Ensure the Make package is installed.
become: true
yum:
name: make
state: present
2018-11-30 22:59:16 +01:00
- name: Check if RQLite is already installed.
stat:
path: /var/xppl/rqlite
register: rqlite_install_directory
2018-11-30 22:45:13 +01:00
- name: Get RQLite installed into project directory.
make:
chdir: /var/xppl
target: install-rqlite
creates: /var/xppl/rqlite
2018-11-30 22:59:16 +01:00
when: not rqlite_install_directory.stat.exists