Commit fe2789b2 authored by JANON Alexis's avatar JANON Alexis

added base path to the repo as a variable to be passed to the setup

parent 8f7128c8
......@@ -18,7 +18,8 @@
hosts: all
gather_facts: true
vars:
results_dir: "{{ ansible_env.HOME }}/repo/results/{{ timestamp }}/{{ ansible_hostname }}"
base_dir: "{{ ansible_env.HOME }}/repo"
results_dir: "{{ base_dir }}/results/{{ timestamp }}/{{ ansible_hostname }}"
tasks:
- name: Prepare remote host before copying
file:
......@@ -35,6 +36,7 @@
command:
argv:
- "{{ ansible_env.HOME }}/repo/setup/run"
- "{{ base_dir }}"
- "{{ results_dir }}"
args:
creates: "{{ results_dir }}/setup.tar.xz"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment