summaryrefslogtreecommitdiffstats
path: root/roles/current/tasks
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-01-10 06:43:49 +0100
committerSuren A. Chilingaryan <csa@suren.me>2019-01-10 06:43:49 +0100
commit7b61d43ab127b2604a6b4f1e71b6d5b71d2fb362 (patch)
tree85efa337b6e8375255022dd70dccd6f5b9bb5e38 /roles/current/tasks
parent18da6e4b5942f4fcaa9db3ba3bf1dfcd1857e9ea (diff)
downloadands-7b61d43ab127b2604a6b4f1e71b6d5b71d2fb362.tar.gz
ands-7b61d43ab127b2604a6b4f1e71b6d5b71d2fb362.tar.bz2
ands-7b61d43ab127b2604a6b4f1e71b6d5b71d2fb362.tar.xz
ands-7b61d43ab127b2604a6b4f1e71b6d5b71d2fb362.zip
Update current role
Diffstat (limited to 'roles/current/tasks')
-rw-r--r--roles/current/tasks/firewall.yml4
-rw-r--r--roles/current/tasks/main.yml3
-rw-r--r--roles/current/tasks/selabel.yml6
-rw-r--r--roles/current/tasks/selabels.yml7
4 files changed, 20 insertions, 0 deletions
diff --git a/roles/current/tasks/firewall.yml b/roles/current/tasks/firewall.yml
new file mode 100644
index 0000000..672facd
--- /dev/null
+++ b/roles/current/tasks/firewall.yml
@@ -0,0 +1,4 @@
+- name: Enable OpenShift Router statistics
+ firewalld: service="{{ item }}" state="enabled" permanent="true" immediate="true"
+ with_items:
+ - haproxy-stats
diff --git a/roles/current/tasks/main.yml b/roles/current/tasks/main.yml
new file mode 100644
index 0000000..e18838f
--- /dev/null
+++ b/roles/current/tasks/main.yml
@@ -0,0 +1,3 @@
+---
+- name: "Performing current maintenance actions"
+ include_tasks: "{{ action | default('common') }}.yml"
diff --git a/roles/current/tasks/selabel.yml b/roles/current/tasks/selabel.yml
new file mode 100644
index 0000000..987f982
--- /dev/null
+++ b/roles/current/tasks/selabel.yml
@@ -0,0 +1,6 @@
+---
+- name: "Setting SELinux context for non standard locations"
+ sefcontext: target="{{ hostpath }}" setype="svirt_sandbox_file_t" state="present" reload="yes"
+
+- name: "Apply SELinux context for non standard locations"
+ shell: restorecon "{{ hostpath }}"
diff --git a/roles/current/tasks/selabels.yml b/roles/current/tasks/selabels.yml
new file mode 100644
index 0000000..db79a1c
--- /dev/null
+++ b/roles/current/tasks/selabels.yml
@@ -0,0 +1,7 @@
+- name: Set SE Labels on folders
+ include_tasks: selabel.yml
+ with_items:
+ - /mnt/hostraid/katrin
+ - /mnt/hostraid/katrin/workspace
+ loop_control:
+ loop_var: hostpath