<p>osmith has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ci/+/23275">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">ansible: remove raspbian default user "pi"<br><br>Add a new subtask that deletes Raspbian's default user "pi" with<br>UID=1000, so we can use the UID for the jenkins user. When the ansible<br>playbook is running, root access via ssh is already configured, so we<br>don't need the user "pi" anymore.<br><br>Related: OS#5055<br>Change-Id: If0cee6d35016c487eca02752625732dd03fad350<br>---<br>M ansible/roles/osmocom-jenkins-slave/tasks/main.yml<br>1 file changed, 9 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/75/23275/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/ansible/roles/osmocom-jenkins-slave/tasks/main.yml b/ansible/roles/osmocom-jenkins-slave/tasks/main.yml</span><br><span>index 3a5cafa..2623201 100644</span><br><span>--- a/ansible/roles/osmocom-jenkins-slave/tasks/main.yml</span><br><span>+++ b/ansible/roles/osmocom-jenkins-slave/tasks/main.yml</span><br><span>@@ -4,6 +4,15 @@</span><br><span>   include_tasks: debian.yml</span><br><span>   when: ansible_distribution == 'Debian'</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+# Raspbian default user "pi" has uid=1000, which we need for the jenkins user.</span><br><span style="color: hsl(120, 100%, 40%);">+# When the ansible playbook is running, root access via ssh is already</span><br><span style="color: hsl(120, 100%, 40%);">+# configured, so we don't need the user "pi" anymore.</span><br><span style="color: hsl(120, 100%, 40%);">+- name: delete raspbian default user</span><br><span style="color: hsl(120, 100%, 40%);">+  user:</span><br><span style="color: hsl(120, 100%, 40%);">+    name: "pi"</span><br><span style="color: hsl(120, 100%, 40%);">+    remove: true</span><br><span style="color: hsl(120, 100%, 40%);">+    state: absent</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> - name: add user jenkins</span><br><span>   user:</span><br><span>     name: "{{ jenkins_user }}"</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ci/+/23275">change 23275</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/osmo-ci/+/23275"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-ci </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: If0cee6d35016c487eca02752625732dd03fad350 </div>
<div style="display:none"> Gerrit-Change-Number: 23275 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>