Some operating systems (notably openSUSE) don't create a group with the same name when a user is created: create it explicitly so that we can later rely on it being present. Signed-off-by: Andrea Bolognani <abologna@xxxxxxxxxx> --- guests/playbooks/update/tasks/users.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/guests/playbooks/update/tasks/users.yml b/guests/playbooks/update/tasks/users.yml index 0470686..a6fb0aa 100644 --- a/guests/playbooks/update/tasks/users.yml +++ b/guests/playbooks/update/tasks/users.yml @@ -18,9 +18,15 @@ line: 'PermitRootLogin without-password' state: present +- name: '{{ flavor }}: Create group' + group: + name: '{{ flavor }}' + state: present + - name: '{{ flavor }}: Create user account' user: name: '{{ flavor }}' + group: '{{ flavor }}' comment: '{{ flavor }}' password: '*' shell: '{{ bash }}' -- 2.23.0 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list