osmith has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-ci/+/39318?usp=email )


Change subject: ansible/setup-obs-worker: add man and etckeeper
......................................................................

ansible/setup-obs-worker: add man and etckeeper

Change-Id: I131fac4e43245b41deb87b0f2631679109c56d2d
---
M ansible/setup-obs-worker.yml
1 file changed, 13 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/18/39318/1

diff --git a/ansible/setup-obs-worker.yml b/ansible/setup-obs-worker.yml
index 4fc2f37..a9f686b 100644
--- a/ansible/setup-obs-worker.yml
+++ b/ansible/setup-obs-worker.yml
@@ -8,13 +8,26 @@
     - name: install common utilities
       zypper:
         name:
+          - etckeeper
+          - git
           - ltrace
+          - man
           - screen
           - strace
           - tcpdump
           - tmux
           - vim

+  # We need to initialize etckeeper after installing it (in Debian and other
+  # distros this is done automatically)
+    - name: Check if etckeeper is initialized
+      stat:
+        path: "/etc/.git"
+      register: etckeeper_result
+    - name: Initialize etckeeper
+      ansible.builtin.shell: "etckeeper init; etckeeper commit initial"
+      when: not etckeeper_result.stat.exists
+
   roles:
     - name: osmocom-obs-worker
       tags:

--
To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/39318?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: newchange
Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: I131fac4e43245b41deb87b0f2631679109c56d2d
Gerrit-Change-Number: 39318
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <[email protected]>

Reply via email to