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(a)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