diff --git a/changelogs/fragments/user-docs-group-fix.yaml b/changelogs/fragments/user-docs-group-fix.yaml new file mode 100644 index 00000000000..99bf29322db --- /dev/null +++ b/changelogs/fragments/user-docs-group-fix.yaml @@ -0,0 +1,2 @@ +bugfixes: + - user - update docs to reflect proper way to remove account from all groups diff --git a/lib/ansible/modules/system/user.py b/lib/ansible/modules/system/user.py index 6a65df1f801..9cf9947281f 100644 --- a/lib/ansible/modules/system/user.py +++ b/lib/ansible/modules/system/user.py @@ -57,8 +57,7 @@ options: groups: description: - List of groups user will be added to. When set to an empty string C(''), - C(null), or C(~), the user is removed from all groups except the - primary group. (C(~) means C(null) in YAML) + the user is removed from all groups except the primary group. - Before Ansible 2.3, the only input format allowed was a comma separated string. - Mutually exclusive with C(local) type: list