Skip to content

Commit f92f179

Browse files
authored
changed thp conditional to ansible_service_manager Fixes #146 (#147)
1 parent b4d0ff1 commit f92f179

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

roles/splunk/tasks/configure_os.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@
1212

1313
- name: Disable THP
1414
include_tasks: configure_thp.yml
15-
when: "'full' in group_names"
15+
when:
16+
- ansible_service_mgr == "systemd"
17+
- ansible_connection != "docker"
18+
- "'full' in group_names"
1619

1720
- name: Enable read for dmesg
1821
include_tasks: configure_dmesg.yml

roles/splunk/tasks/configure_thp.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,3 @@
7373
# because we want to test this task's functionality, we want it to run even though it does nothing for a container
7474
# but the notified handlers above will be skipped by their when expressions
7575
ignore_errors: true
76-
when:
77-
- (not ansible_os_family == "RedHat" and ansible_distribution_major_version|int > 6)
78-
- ansible_connection!="docker"
79-
- "'full' in group_names"

0 commit comments

Comments
 (0)