diff --git a/changelogs/fragments/57024-adds-visibility-parameter-gitlab-group.yml b/changelogs/fragments/57024-adds-visibility-parameter-gitlab-group.yml new file mode 100644 index 00000000000..435ce3f388b --- /dev/null +++ b/changelogs/fragments/57024-adds-visibility-parameter-gitlab-group.yml @@ -0,0 +1,2 @@ +minor_changes: + - gitlab_group - Adds missing visibility parameter to gitlab group creation diff --git a/lib/ansible/modules/source_control/gitlab_group.py b/lib/ansible/modules/source_control/gitlab_group.py index d46c9009bf5..45289dd6b90 100644 --- a/lib/ansible/modules/source_control/gitlab_group.py +++ b/lib/ansible/modules/source_control/gitlab_group.py @@ -188,7 +188,8 @@ class GitLabGroup(object): group = self.createGroup({ 'name': name, 'path': options['path'], - 'parent_id': parent_id}) + 'parent_id': parent_id, + 'visibility': options['visibility']}) changed = True else: changed, group = self.updateGroup(self.groupObject, {