summaryrefslogtreecommitdiffstats
path: root/roles/ands_monitor/tasks/main.yml
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2018-04-16 10:52:27 +0200
committerSuren A. Chilingaryan <csa@suren.me>2018-04-16 10:52:27 +0200
commit3155c744b3924e68213e542b9a22d858bb64cf83 (patch)
tree097457f18cbcda0008d01c865255e92c1a3911a7 /roles/ands_monitor/tasks/main.yml
parentabea46eb8a3e05f6010247b526b5364ec312f2dc (diff)
downloadands-3155c744b3924e68213e542b9a22d858bb64cf83.tar.gz
ands-3155c744b3924e68213e542b9a22d858bb64cf83.tar.bz2
ands-3155c744b3924e68213e542b9a22d858bb64cf83.tar.xz
ands-3155c744b3924e68213e542b9a22d858bb64cf83.zip
Provision monitoring scripts on request
Diffstat (limited to 'roles/ands_monitor/tasks/main.yml')
-rw-r--r--roles/ands_monitor/tasks/main.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/roles/ands_monitor/tasks/main.yml b/roles/ands_monitor/tasks/main.yml
new file mode 100644
index 0000000..ac70d28
--- /dev/null
+++ b/roles/ands_monitor/tasks/main.yml
@@ -0,0 +1,9 @@
+- name: Create scripts directory
+ file: path="{{ ands_script_path }}" state=directory
+
+- name: "Deploy scripts"
+ template: src="{{ item | quote }}" dest="{{ ands_script_path }}/{{ script_name }}" owner=root group=root mode=0755
+ vars:
+ script_name: "{{ item | basename | regex_replace('\\.j2','') }}"
+ with_fileglob:
+ - "{{ role_path }}/templates/scripts/*.j2"