From 5e3b6c84c76a71a1bfc4b58504cbd03231835dba Mon Sep 17 00:00:00 2001 From: Sam Doran Date: Fri, 15 Nov 2019 17:07:02 -0500 Subject: [PATCH] Fix group integration test for CentOS 8 (#64858) --- test/integration/targets/group/tasks/tests.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/test/integration/targets/group/tasks/tests.yml b/test/integration/targets/group/tasks/tests.yml index f4af6105424..b29e2e191d9 100644 --- a/test/integration/targets/group/tasks/tests.yml +++ b/test/integration/targets/group/tasks/tests.yml @@ -193,6 +193,15 @@ that: - not delete_group_again is changed +- name: Ensure lgroupadd is present + action: "{{ ansible_facts.pkg_mgr }}" + args: + name: libuser + state: present + when: ansible_facts.system in ['Linux'] + tags: + - user_test_local_mode + # https://github.com/ansible/ansible/issues/56481 - block: - name: Test duplicate GID with local=yes @@ -252,7 +261,7 @@ - not create_local_group_gid_again is changed - create_local_group_gid_again.gid | int == 1337 | int always: - - name: Cleanup create local group with a gid + - name: Cleanup create local group with a gid group: name: group1_local_test state: absent