aboutsummaryrefslogtreecommitdiffstats
path: root/docker/ansible/roles/config_files/tasks/mcelog.yml
diff options
context:
space:
mode:
Diffstat (limited to 'docker/ansible/roles/config_files/tasks/mcelog.yml')
-rw-r--r--docker/ansible/roles/config_files/tasks/mcelog.yml17
1 files changed, 17 insertions, 0 deletions
diff --git a/docker/ansible/roles/config_files/tasks/mcelog.yml b/docker/ansible/roles/config_files/tasks/mcelog.yml
index 9c935e3..bab4b14 100644
--- a/docker/ansible/roles/config_files/tasks/mcelog.yml
+++ b/docker/ansible/roles/config_files/tasks/mcelog.yml
@@ -13,6 +13,23 @@
# limitations under the License.
---
+- name: install mcelog package
+ package:
+ name: mcelog
+ state: present
+ when: install_mcelog|default(false)|bool
+ tags:
+ - mcelogs
+
+- name: start mcelog daemon if not running
+ service:
+ name: mcelog
+ state: started
+ enabled: true
+ when: install_mcelog|default(false)|bool
+ tags:
+ - mcelogs
+
- name: check if mcelog running on host
shell: ps -ef | grep mcelog | grep -v grep > /dev/null
register: mcelog_running