[libvirt] [jenkins-ci PATCH 2/2] lcitool: Create group and user separately
Andrea Bolognani
abologna at redhat.com
Mon Dec 2 18:32:15 UTC 2019
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 at redhat.com>
---
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
More information about the libvir-list
mailing list