]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commit
users: Leave managed_admin_users' other group memberships alone 280/head
authorDavid Galloway <dgallowa@redhat.com>
Tue, 23 Aug 2016 22:56:58 +0000 (18:56 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Wed, 24 Aug 2016 19:48:24 +0000 (15:48 -0400)
commitb1c40430acc562ff56f453cd427a32a647808909
tree72fe6adbf57c3a26c072539c21b89e6effe63420
parenta49de6bb41e81ec2acf3c7d5d8d55dc417501128
users: Leave managed_admin_users' other group memberships alone

This change is mainly so the users role can be run on vps_hosts.

Previously, in order to update the ubuntu user's authorized_keys on
vps_hosts, the testnodes role had to be run which caused ubuntu to be
removed from the libvirtd group.

The ubuntu user is in managed_admin_users on vps_hosts so this will
ensure the user is added to sudo and left in the libvirtd group.

managed_users, on the other hand, we want to make sure are only in
groups we specify so the "Create all users without sudo access." task is
left as-is (without append: yes).

Signed-off-by: David Galloway <dgallowa@redhat.com>
roles/users/tasks/create_users.yml