aboutsummaryrefslogtreecommitdiffstats
path: root/resources/ansible_roles/qtip-workspace
diff options
context:
space:
mode:
Diffstat (limited to 'resources/ansible_roles/qtip-workspace')
-rw-r--r--resources/ansible_roles/qtip-workspace/files/defaults/group_vars/.gitkeep0
-rw-r--r--resources/ansible_roles/qtip-workspace/files/defaults/host_vars/.gitkeep0
-rw-r--r--resources/ansible_roles/qtip-workspace/files/template/ansible.cfg (renamed from resources/ansible_roles/qtip-workspace/files/custom/ansible.cfg)0
-rw-r--r--resources/ansible_roles/qtip-workspace/files/template/fixtures/case.json (renamed from resources/ansible_roles/qtip-workspace/files/defaults/fixtures/case.json)0
-rw-r--r--resources/ansible_roles/qtip-workspace/files/template/fixtures/pod.json (renamed from resources/ansible_roles/qtip-workspace/files/defaults/fixtures/pod.json)0
-rw-r--r--resources/ansible_roles/qtip-workspace/files/template/fixtures/project.json (renamed from resources/ansible_roles/qtip-workspace/files/defaults/fixtures/project.json)0
-rw-r--r--resources/ansible_roles/qtip-workspace/files/template/group_vars/all.yml (renamed from resources/ansible_roles/qtip-workspace/files/custom/group_vars/all.yml)0
-rw-r--r--resources/ansible_roles/qtip-workspace/files/template/host_vars/localhost.yml (renamed from resources/ansible_roles/qtip-workspace/files/custom/host_vars/localhost.yml)0
-rw-r--r--resources/ansible_roles/qtip-workspace/files/template/hosts (renamed from resources/ansible_roles/qtip-workspace/files/custom/hosts)0
-rw-r--r--resources/ansible_roles/qtip-workspace/files/template/run.yml (renamed from resources/ansible_roles/qtip-workspace/files/defaults/run.yml)10
-rw-r--r--resources/ansible_roles/qtip-workspace/files/template/setup.yml (renamed from resources/ansible_roles/qtip-workspace/files/defaults/setup.yml)0
-rw-r--r--resources/ansible_roles/qtip-workspace/files/template/teardown.yml (renamed from resources/ansible_roles/qtip-workspace/files/defaults/teardown.yml)0
-rw-r--r--resources/ansible_roles/qtip-workspace/files/template/templates/hosts (renamed from resources/ansible_roles/qtip-workspace/files/defaults/templates/hosts)2
-rw-r--r--resources/ansible_roles/qtip-workspace/files/template/templates/ssh.cfg (renamed from resources/ansible_roles/qtip-workspace/files/defaults/templates/ssh.cfg)2
-rw-r--r--resources/ansible_roles/qtip-workspace/tasks/main.yml15
15 files changed, 18 insertions, 11 deletions
diff --git a/resources/ansible_roles/qtip-workspace/files/defaults/group_vars/.gitkeep b/resources/ansible_roles/qtip-workspace/files/defaults/group_vars/.gitkeep
deleted file mode 100644
index e69de29b..00000000
--- a/resources/ansible_roles/qtip-workspace/files/defaults/group_vars/.gitkeep
+++ /dev/null
diff --git a/resources/ansible_roles/qtip-workspace/files/defaults/host_vars/.gitkeep b/resources/ansible_roles/qtip-workspace/files/defaults/host_vars/.gitkeep
deleted file mode 100644
index e69de29b..00000000
--- a/resources/ansible_roles/qtip-workspace/files/defaults/host_vars/.gitkeep
+++ /dev/null
diff --git a/resources/ansible_roles/qtip-workspace/files/custom/ansible.cfg b/resources/ansible_roles/qtip-workspace/files/template/ansible.cfg
index a80d4ae4..a80d4ae4 100644
--- a/resources/ansible_roles/qtip-workspace/files/custom/ansible.cfg
+++ b/resources/ansible_roles/qtip-workspace/files/template/ansible.cfg
diff --git a/resources/ansible_roles/qtip-workspace/files/defaults/fixtures/case.json b/resources/ansible_roles/qtip-workspace/files/template/fixtures/case.json
index 22abc40f..22abc40f 100644
--- a/resources/ansible_roles/qtip-workspace/files/defaults/fixtures/case.json
+++ b/resources/ansible_roles/qtip-workspace/files/template/fixtures/case.json
diff --git a/resources/ansible_roles/qtip-workspace/files/defaults/fixtures/pod.json b/resources/ansible_roles/qtip-workspace/files/template/fixtures/pod.json
index 654b5828..654b5828 100644
--- a/resources/ansible_roles/qtip-workspace/files/defaults/fixtures/pod.json
+++ b/resources/ansible_roles/qtip-workspace/files/template/fixtures/pod.json
diff --git a/resources/ansible_roles/qtip-workspace/files/defaults/fixtures/project.json b/resources/ansible_roles/qtip-workspace/files/template/fixtures/project.json
index ecd03e83..ecd03e83 100644
--- a/resources/ansible_roles/qtip-workspace/files/defaults/fixtures/project.json
+++ b/resources/ansible_roles/qtip-workspace/files/template/fixtures/project.json
diff --git a/resources/ansible_roles/qtip-workspace/files/custom/group_vars/all.yml b/resources/ansible_roles/qtip-workspace/files/template/group_vars/all.yml
index 2967f6eb..2967f6eb 100644
--- a/resources/ansible_roles/qtip-workspace/files/custom/group_vars/all.yml
+++ b/resources/ansible_roles/qtip-workspace/files/template/group_vars/all.yml
diff --git a/resources/ansible_roles/qtip-workspace/files/custom/host_vars/localhost.yml b/resources/ansible_roles/qtip-workspace/files/template/host_vars/localhost.yml
index 815e2ea3..815e2ea3 100644
--- a/resources/ansible_roles/qtip-workspace/files/custom/host_vars/localhost.yml
+++ b/resources/ansible_roles/qtip-workspace/files/template/host_vars/localhost.yml
diff --git a/resources/ansible_roles/qtip-workspace/files/custom/hosts b/resources/ansible_roles/qtip-workspace/files/template/hosts
index b8b4bbe6..b8b4bbe6 100644
--- a/resources/ansible_roles/qtip-workspace/files/custom/hosts
+++ b/resources/ansible_roles/qtip-workspace/files/template/hosts
diff --git a/resources/ansible_roles/qtip-workspace/files/defaults/run.yml b/resources/ansible_roles/qtip-workspace/files/template/run.yml
index 41df913b..9bb865d6 100644
--- a/resources/ansible_roles/qtip-workspace/files/defaults/run.yml
+++ b/resources/ansible_roles/qtip-workspace/files/template/run.yml
@@ -27,11 +27,11 @@
roles:
# run test and collect metrics
- - { role: inxi, output: "{{ qtip_results }}/sysinfo", tags: [run, inxi, sysinfo] }
- - { role: unixbench, output: "{{ qtip_results }}/arithmetic", tags: [run, unixbench, arithmetic] }
- - { role: openssl, output: "{{ qtip_results }}/ssl", tags: [run, openssl, ssl] }
- - { role: nDPI, output: "{{ qtip_results }}/dpi", tags: [run, ndpi, dpi] }
- - { role: ramspeed, output: "{{ qtip_results }}/memory", tags: [run, ramspeed, memory] }
+ - { role: inxi, output: "{% raw %}{{ qtip_results }}{% endraw %}/sysinfo", tags: [run, inxi, sysinfo] }
+ - { role: unixbench, output: "{% raw %}{{ qtip_results }}{% endraw %}/arithmetic", tags: [run, unixbench, arithmetic] }
+ - { role: openssl, output: "{% raw %}{{ qtip_results }}{% endraw %}/ssl", tags: [run, openssl, ssl] }
+ - { role: nDPI, output: "{% raw %}{{ qtip_results }}{% endraw %}/dpi", tags: [run, ndpi, dpi] }
+ - { role: ramspeed, output: "{% raw %}{{ qtip_results }}{% endraw %}/memory", tags: [run, ramspeed, memory] }
# calculate scores
- { role: qtip, tasks: calculate, tags: [calculate] }
diff --git a/resources/ansible_roles/qtip-workspace/files/defaults/setup.yml b/resources/ansible_roles/qtip-workspace/files/template/setup.yml
index a522d67b..a522d67b 100644
--- a/resources/ansible_roles/qtip-workspace/files/defaults/setup.yml
+++ b/resources/ansible_roles/qtip-workspace/files/template/setup.yml
diff --git a/resources/ansible_roles/qtip-workspace/files/defaults/teardown.yml b/resources/ansible_roles/qtip-workspace/files/template/teardown.yml
index 4d51b64f..4d51b64f 100644
--- a/resources/ansible_roles/qtip-workspace/files/defaults/teardown.yml
+++ b/resources/ansible_roles/qtip-workspace/files/template/teardown.yml
diff --git a/resources/ansible_roles/qtip-workspace/files/defaults/templates/hosts b/resources/ansible_roles/qtip-workspace/files/template/templates/hosts
index 6779d6f4..cbbfcfef 100644
--- a/resources/ansible_roles/qtip-workspace/files/defaults/templates/hosts
+++ b/resources/ansible_roles/qtip-workspace/files/template/templates/hosts
@@ -1,3 +1,4 @@
+{% raw %}
localhost ansible_connection=local
[{{ installer_master_group[installer] }}]
@@ -18,3 +19,4 @@ ansible_ssh_common_args=-F ./ssh.cfg
{% endfor %}
{% endfor %}
+{% endraw %} \ No newline at end of file
diff --git a/resources/ansible_roles/qtip-workspace/files/defaults/templates/ssh.cfg b/resources/ansible_roles/qtip-workspace/files/template/templates/ssh.cfg
index 6c8968d3..67246054 100644
--- a/resources/ansible_roles/qtip-workspace/files/defaults/templates/ssh.cfg
+++ b/resources/ansible_roles/qtip-workspace/files/template/templates/ssh.cfg
@@ -1,3 +1,4 @@
+{% raw %}
# Connect to target node through jump host
#
# OpenSSH 7.3:
@@ -12,3 +13,4 @@ Host {{ name }}
ProxyCommand ssh -o 'ForwardAgent yes' {{ installer_master_host }} 'ssh-add && nc %h %p'
{% endfor %}
+{% endraw %} \ No newline at end of file
diff --git a/resources/ansible_roles/qtip-workspace/tasks/main.yml b/resources/ansible_roles/qtip-workspace/tasks/main.yml
index 89ce3dd4..4331468d 100644
--- a/resources/ansible_roles/qtip-workspace/tasks/main.yml
+++ b/resources/ansible_roles/qtip-workspace/tasks/main.yml
@@ -7,15 +7,18 @@
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
-- name: copying default files
- synchronize:
- src: defaults/
- dest: "{{ workspace }}/"
+- name: creating directories
+ file:
+ path: "{{ workspace }}/{{ item.path }}"
+ state: directory
+ force: yes
+ with_filetree: template/
+ when: item.state == 'directory'
-- name: customizing for workspace
+- name: templating files
template:
src: "{{ item.src }}"
dest: "{{ workspace }}/{{ item.path }}"
force: yes
- with_filetree: custom
+ with_filetree: template/
when: item.state == 'file'