fix(ovs): Fix LimitMEMLOCK assertion (#344)
diff --git a/roles/openvswitch/tasks/main.yml b/roles/openvswitch/tasks/main.yml
index a6e3155..c4ca63b 100644
--- a/roles/openvswitch/tasks/main.yml
+++ b/roles/openvswitch/tasks/main.yml
@@ -12,14 +12,14 @@
# License for the specific language governing permissions and limitations
# under the License.
-# NOTE(mnaser): Open vSwitch will refuse to start if `DefaultLimitMEMLOCK` is
+# NOTE(mnaser): Open vSwitch will refuse to start if `LimitMEMLOCK` is
# not set to `infinity` in `/etc/systemd/system.conf`, so we run
# this task to ensure that it is set.
- name: Verify that LimitMEMLOCK is configured for containerd
block:
- name: Get the current status of all systemd values for containerd
changed_when: false
- ansible.builtin.command: systemctl show containerd --property DefaultLimitMEMLOCK # noqa: command-instead-of-module
+ ansible.builtin.command: systemctl show containerd --property LimitMEMLOCK # noqa: command-instead-of-module
register: _openvswitch_memlock_value
- name: Assert that LimitMEMLOCK is set to infinity