diff --git a/test/integration/targets/group/tasks/tests.yml b/test/integration/targets/group/tasks/tests.yml index 0822682a2ff..b5d336b5b71 100644 --- a/test/integration/targets/group/tasks/tests.yml +++ b/test/integration/targets/group/tasks/tests.yml @@ -138,11 +138,19 @@ state: present register: create_group_gid_non_unique + - name: validate gid required with non_unique + group: + name: foo + non_unique: true + register: missing_gid + ignore_errors: true + - name: assert create group with a non unique gid assert: - that: + that: - create_group_gid_non_unique is changed - create_group_gid_non_unique.gid | int == gid.stdout_lines[0] | int + - missing_gid is failed when: ansible_facts.distribution not in ['MacOSX', 'Alpine'] ## diff --git a/test/integration/targets/lookup_dict/tasks/main.yml b/test/integration/targets/lookup_dict/tasks/main.yml index 6f778548b9c..b1324136148 100644 --- a/test/integration/targets/lookup_dict/tasks/main.yml +++ b/test/integration/targets/lookup_dict/tasks/main.yml @@ -27,7 +27,9 @@ - name: Convert a non-dict (failure expected) set_fact: - bad_fact: "{{ lookup('dict', 1) }}" + bad_fact: "{{ bbbbad }}" + vars: + bbbbad: "{{ lookup('dict', 1) }}" register: result ignore_errors: yes