]> git.immae.eu Git - github/fretlink/ansible-clever.git/commitdiff
change default value for clever_app_root 17/head
authorGaëtan Duchaussois <gaetan.duchaussois@fretlink.com>
Wed, 14 Nov 2018 14:28:54 +0000 (15:28 +0100)
committerGaëtan Duchaussois <gaetan.duchaussois@fretlink.com>
Wed, 14 Nov 2018 14:44:28 +0000 (15:44 +0100)
README.md
defaults/main.yml

index ff316532233ba8e2118f4ba15232f37ccd34a62d..86153aff492061f226ab7f3dec2113fad80d13a4 100644 (file)
--- a/README.md
+++ b/README.md
@@ -35,7 +35,7 @@ Variables for the application
 Variables specific to deployment, default should be fine:
 - `clever_cli_version`: Version of clever cli tools, default to `0.9.3`.
 - `clever_user_path`: Path relative to ansible_user home dir where cli tools and helpers are installed default to `.local/bin`.
-- `clever_app_root`: Path of the application to deploy, default to `"{{ playbook_dir }}/.."`, ie ansible directory in the root of the application.
+- `clever_app_root`: Path of the application to deploy, default to `app_root` if defined or `"{{ playbook_dir }}/.."`, ie ansible directory in the root of the application.
 - `clever_app_confdir`: Path where to store clever cloud data specific to this application, default to `"{{ clever_app_root }}/.clever_cloud"`
 - `clever_login_file`: Path to store login information. Default to `"{{ clever_app_confdir }}/login"`.
 
index 66149b01392b3e0d4da409faf0fafff4d88f70e0..1fbea480bd1bc0070f7ad7f8ce7903638e8e53ae 100644 (file)
@@ -2,7 +2,7 @@
 # defaults file for clever
 clever_cli_version: 0.9.3
 clever_user_path: .local/bin
-clever_app_root: "{{ playbook_dir }}/.."
+clever_app_root: "{{ app_root | default(playbook_dir + '/..') }}"
 clever_app_confdir: "{{ clever_app_root }}/.clever_cloud"
 clever_login_file: "{{ clever_app_confdir }}/login"