From nobody Mon Feb 9 19:05:05 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=patchew-devel-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=patchew-devel-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 153256966118157.95658309881151; Wed, 25 Jul 2018 18:47:41 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5C0265F780; Thu, 26 Jul 2018 01:47:40 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4CAC5261C0; Thu, 26 Jul 2018 01:47:40 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 3D3EC18037EC; Thu, 26 Jul 2018 01:47:40 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w6Q1ld5I015034 for ; Wed, 25 Jul 2018 21:47:39 -0400 Received: by smtp.corp.redhat.com (Postfix) id E087B202704B; Thu, 26 Jul 2018 01:47:38 +0000 (UTC) Received: from lemon.usersys.redhat.com (ovpn-12-77.pek2.redhat.com [10.72.12.77]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5D0A52026D68; Thu, 26 Jul 2018 01:47:36 +0000 (UTC) From: Fam Zheng To: patchew-devel@redhat.com Date: Thu, 26 Jul 2018 09:47:18 +0800 Message-Id: <20180726014725.13677-4-famz@redhat.com> In-Reply-To: <20180726014725.13677-1-famz@redhat.com> References: <20180726014725.13677-1-famz@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-loop: patchew-devel@redhat.com Subject: [Patchew-devel] [PATCH 03/10] deploy-testers: Allow deploy with normal user access X-BeenThere: patchew-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Patchew development and discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: patchew-devel-bounces@redhat.com Errors-To: patchew-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Thu, 26 Jul 2018 01:47:40 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Ansible "become" and "/data" basically requires root access to the tester machine, but that is not always the case. Tweak the playbook a bit to allow that. Signed-off-by: Fam Zheng --- scripts/playbooks/deploy-testers.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/scripts/playbooks/deploy-testers.yml b/scripts/playbooks/deplo= y-testers.yml index ae3ab0b..7b375db 100644 --- a/scripts/playbooks/deploy-testers.yml +++ b/scripts/playbooks/deploy-testers.yml @@ -23,7 +23,7 @@ default: patchew private: no vars: - base_dir: "/data/{{ instance_name }}" + base_dir: "{{ instance_name }}" src_dir: "{{ base_dir }}/src" patchew_cmd: "{{ src_dir }}/patchew-cli -s {{ patchew_server }}" tasks: @@ -52,16 +52,10 @@ - "--exclude=3D/venv" - name: Generate password file shell: "echo {{ tester_pass }} > $HOME/.patchew-tester-pass" - become: true - become_user: "{{ cron_user }}" - name: Login with patchew-cli shell: "{{ patchew_cmd }} login {{ tester_user }} $(cat $HOME/.patch= ew-tester-pass)" - become: true - become_user: "{{ cron_user }}" - name: Logout with patchew-cli shell: "{{ patchew_cmd }} logout" - become: true - become_user: "{{ cron_user }}" - name: Define PATCHEW env in cron cron: name: PATCHEW --=20 2.17.1 _______________________________________________ Patchew-devel mailing list Patchew-devel@redhat.com https://www.redhat.com/mailman/listinfo/patchew-devel