[libvirt-jenkins-ci PATCH v2 2/6] guests: users: Create a bin/ directory in the flavor user's home

Erik Skultety eskultet at redhat.com
Tue Apr 7 11:31:17 UTC 2020


We're creating a dedicated user to run the gitlab agent, so why not
store the agent within the user profile and execute it from there.

Signed-off-by: Erik Skultety <eskultet at redhat.com>
---
 guests/playbooks/update/tasks/users.yml | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/guests/playbooks/update/tasks/users.yml b/guests/playbooks/update/tasks/users.yml
index a07349f..4b09416 100644
--- a/guests/playbooks/update/tasks/users.yml
+++ b/guests/playbooks/update/tasks/users.yml
@@ -70,3 +70,10 @@
   with_items:
     - profile
     - bash_logout
+
+- name: '{{ flavor }}: Create /home/{{ flavor }}/bin directory'
+  file:
+    path: /home/{{ flavor }}/bin
+    state: directory
+    owner: '{{ flavor }}'
+    group: '{{ flavor }}'
-- 
2.25.1




More information about the libvir-list mailing list