Browse Source
Handle RQLite idempotency.
ansible-setup-and-deploy
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with
6 additions and
0 deletions
-
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 |
|
|
|