From 97100bbea23e230b938cc2bc1eaf6f2679cf6c4c Mon Sep 17 00:00:00 2001 From: Sam Doran Date: Fri, 6 Sep 2019 12:16:33 -0400 Subject: [PATCH] [stable-2.9] User - correct group removal description in docs (#61936) (cherry picked from commit 61efffcbe1) Co-authored-by: Sam Doran --- changelogs/fragments/user-docs-group-fix.yaml | 2 ++ lib/ansible/modules/system/user.py | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 changelogs/fragments/user-docs-group-fix.yaml 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