Skip to content

Commit

Permalink
changed thp conditional to ansible_service_manager Fixes #146 (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
jewnix authored Nov 21, 2022
1 parent b4d0ff1 commit f92f179
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 4 additions & 1 deletion roles/splunk/tasks/configure_os.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@

- name: Disable THP
include_tasks: configure_thp.yml
when: "'full' in group_names"
when:
- ansible_service_mgr == "systemd"
- ansible_connection != "docker"
- "'full' in group_names"

- name: Enable read for dmesg
include_tasks: configure_dmesg.yml
Expand Down
4 changes: 0 additions & 4 deletions roles/splunk/tasks/configure_thp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,3 @@
# because we want to test this task's functionality, we want it to run even though it does nothing for a container
# but the notified handlers above will be skipped by their when expressions
ignore_errors: true
when:
- (not ansible_os_family == "RedHat" and ansible_distribution_major_version|int > 6)
- ansible_connection!="docker"
- "'full' in group_names"

0 comments on commit f92f179

Please sign in to comment.