From 1bd3d89113aba553fb7c30644d7e9275c823276f Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Fri, 30 Nov 2018 21:59:16 +0000 Subject: [PATCH] Handle RQLite idempotency. --- ansible/roles/rqlite/tasks/main.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ansible/roles/rqlite/tasks/main.yml b/ansible/roles/rqlite/tasks/main.yml index 6749d6a..c68b913 100644 --- a/ansible/roles/rqlite/tasks/main.yml +++ b/ansible/roles/rqlite/tasks/main.yml @@ -6,8 +6,14 @@ name: make state: present +- name: Check if RQLite is already installed. + stat: + path: /var/xppl/rqlite + register: rqlite_install_directory + - name: Get RQLite installed into project directory. make: chdir: /var/xppl target: install-rqlite creates: /var/xppl/rqlite + when: not rqlite_install_directory.stat.exists