]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
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)
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

index 4b94808f7cee81050b13b1c1bbe4db5b218d11c0..cd4567b8b405397e470528ecf2c0e7b017c49960 100644 (file)
@@ -13,6 +13,7 @@
     groups: sudo
     shell: /bin/bash
     state: present
+    append: yes
   with_items: "{{ managed_admin_users }}"
 
 - name: Create all users without sudo access.