aboutsummaryrefslogtreecommitdiffhomepage
path: root/tasks/setup.yml
diff options
context:
space:
mode:
Diffstat (limited to 'tasks/setup.yml')
-rw-r--r--tasks/setup.yml5
1 files changed, 4 insertions, 1 deletions
diff --git a/tasks/setup.yml b/tasks/setup.yml
index 49e91ca..ac9fdcb 100644
--- a/tasks/setup.yml
+++ b/tasks/setup.yml
@@ -1,7 +1,7 @@
1- name: Check if clever command is available in path and version 1- name: Check if clever command is available in path and version
2 command: clever --version 2 command: clever --version
3 register: clever_returned_version 3 register: clever_returned_version
4 ignore_error: true 4 ignore_errors: true
5 5
6- name: Ensure user path exists 6- name: Ensure user path exists
7 file: 7 file:
@@ -11,6 +11,8 @@
11- name: Download and install clever cli tools if necessary 11- name: Download and install clever cli tools if necessary
12 unarchive: 12 unarchive:
13 remote_src: yes 13 remote_src: yes
14 extra_opts:
15 - "--strip-components=1"
14 src: https://clever-tools.cellar.services.clever-cloud.com/releases/{{ clever_cli_version }}/clever-tools-{{ clever_cli_version }}_linux.tar.gz 16 src: https://clever-tools.cellar.services.clever-cloud.com/releases/{{ clever_cli_version }}/clever-tools-{{ clever_cli_version }}_linux.tar.gz
15 dest: "{{ ansible_env.HOME }}/{{ clever_user_path }}" 17 dest: "{{ ansible_env.HOME }}/{{ clever_user_path }}"
16 when: clever_returned_version|failed or clever_returned_version.stdout != clever_cli_version 18 when: clever_returned_version|failed or clever_returned_version.stdout != clever_cli_version
@@ -19,6 +21,7 @@
19 copy: 21 copy:
20 src: "{{ item }}" 22 src: "{{ item }}"
21 dest: "{{ ansible_env.HOME }}/{{ clever_user_path }}/{{ item }}" 23 dest: "{{ ansible_env.HOME }}/{{ clever_user_path }}/{{ item }}"
24 mode: 0755
22 with_items: 25 with_items:
23 - clever-set-domain.sh 26 - clever-set-domain.sh
24 - clever-set-drain.sh 27 - clever-set-drain.sh