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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 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





[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux