Skip to content

Commit

Permalink
update the condition for ansible_virtualization_type
Browse files Browse the repository at this point in the history
  • Loading branch information
vitabaks committed Mar 3, 2023
1 parent b0c7616 commit 2483a71
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion roles/etcd/templates/etcd.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ExecStart=/bin/bash -c "GOMAXPROCS=$(nproc) /usr/local/bin/etcd"
Restart=on-failure
LimitNOFILE=65536

{% if ansible_virtualization_type not in ['docker', 'lxc', 'podman'] %}
{% if ansible_virtualization_type not in ['container', 'docker', 'lxc', 'podman'] %}
IOSchedulingClass=realtime
IOSchedulingPriority=0
Nice=-20
Expand Down
2 changes: 1 addition & 1 deletion roles/swap/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
changed_when: false
when:
- swap_file_create | bool
- ansible_virtualization_type not in ['docker', 'lxc', 'podman'] # exclude for containers to prevent test failures in CI.
- ansible_virtualization_type not in ['container', 'docker', 'lxc', 'podman'] # exclude for containers to prevent test failures in CI.
tags: swap, swap_create, swap_remove

- name: Swap exists
Expand Down
2 changes: 1 addition & 1 deletion roles/transparent_huge_pages/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
notify: "restart disable-thp"
when:
- (disable_thp is defined and disable_thp|bool)
- ansible_virtualization_type not in ['docker', 'lxc', 'podman'] # exclude for containers to prevent test failures in CI.
- ansible_virtualization_type not in ['container', 'docker', 'lxc', 'podman'] # exclude for containers to prevent test failures in CI.
tags: disable_thp, transparent_huge_pages

- name: Make sure handlers are flushed immediately
Expand Down

0 comments on commit 2483a71

Please sign in to comment.