From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 49E741DF75C for ; Fri, 2 May 2025 12:13:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746188026; cv=none; b=cqbT1dfGSzzJaq4JB2Jp0yTPhYxhkluOWdAyKlO9NhiGqaaEVlTGdkH0+RJb2la4vliJhJR9Is2RRMhcRwlTGyrgZtFVsnZ+ZXboX7FO2HJ82HGP5aWx2zS9ghpiJ+aqg4SKl2gSqGmlE2fKIwJk1iPyZtQGrODAl8ZFKADqfNc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746188026; c=relaxed/simple; bh=SkJj/q69ePV8xliooUbopega4jogLT8XeuLqALJRvGw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=J2wNG88Ev2pNxyF7wvbtQFhvbBA64SkkqL+bet0CfzngI+dNw41YswA4hrqEsuFt9YVTCMvNrO7Qhqmnmf28NpSpqbpnFGcTYVVaXVfnzZfdzW5Npa2ge8vySqONRtJEv5mMMnpzWgCkX0S+GRpBhoD5danit2uQ11U47kExQoM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=OIABr0OS; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="OIABr0OS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 24C30C4CEEE; Fri, 2 May 2025 12:13:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1746188026; bh=SkJj/q69ePV8xliooUbopega4jogLT8XeuLqALJRvGw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=OIABr0OS5x+tG/0vg0ddS0m9kqrtd9uNWb7PTYfiH9iqFfGbdT///sDtPJlYszXs+ HouVwLR9wGyWD11QLh25rmArVTbQ6Ro3H7IKdHzCnFpoQHA6WTnjKrnDrfS9+Eg7HA rZD8t/es/qGnCHOBa1ZmL/bj79OV33yAdq7Og27G467Aru1F55NCJLeP+3ulvFpJZB IPb8L0G1I5KPWb8VKdNfUDGDptOgYFrgjR1l6JPzAdrchraLPCFtjwgitgAIKStPYB 0lm7iY1/e680xvYS2MqmqE3ZXZ4i+L0tdpbyiihvejeNkCH+j5qC0Nj2yB1MYVLJ0p S9CnUUvhqTN/A== From: Daniel Gomez Date: Fri, 02 May 2025 14:13:24 +0200 Subject: [PATCH v2 07/10] gen_hosts: templates: add localhost to all hosts Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20250502-ansible_cfg_inventory-v2-7-d3c19ff4aa6e@samsung.com> References: <20250502-ansible_cfg_inventory-v2-0-d3c19ff4aa6e@samsung.com> In-Reply-To: <20250502-ansible_cfg_inventory-v2-0-d3c19ff4aa6e@samsung.com> To: Luis Chamberlain , Chuck Lever Cc: kdevops@lists.linux.dev, Daniel Gomez , Daniel Gomez X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=16638; i=da.gomez@samsung.com; h=from:subject:message-id; bh=5O2K14h3n9kTEs4D1/pJqdSqW3x42hhTu6HgemmsNPE=; b=owEBbQKS/ZANAwAIAYX1bqTp6BOPAcsmYgBoFLbrs6bUr8BTbwvMHY8r19nUudYfgWK4xACsi g52vaaNMDCJAjMEAAEIAB0WIQSyp6nP3QO1QP9YsnGF9W6k6egTjwUCaBS26wAKCRCF9W6k6egT jzjyD/9BJ0+dSSqoEC0Ktg0FCCP7plQq8Gm6pYx9KNATMpHymdSpEMm/t2DuUpyiMC1eriRk0EG kRJhKaLtCv5GQi9YtmS7G5G16CwvjkAaNtxIFBJU20TlxpuOfVju6B3LQ5yckOkhLOQ6u4kkq8I eJvQsetMSxvfKrLcIJLVL+000DWpBG42cgZRHqKO/7+pC5+0UCz6CCxt1iKYqGkJ1mqAZn9ytG/ EYmctd204I0+IQYSj1tK+ZsTQrFqibZLS8RK8ridqwTigY1Pls9z6o2hCXTj2eEaJ/98+vop0cd +ek88fVGkPlyYtxCjAVyoTEIph9DKdHonvqe16CeEvKmuSdGosDri/FaXEiffIVdYLrbAEJhFPm aEGKI1RhYFXzYRaj78Y9d3Per1I8ZIKyrGbsqD5s4IJ0Oci3saWntip/9YRTI7kNi98rITKOjYq 61a7+2xHXUIDVLnTM51N6jMswVh57347AZX10sb1e/nLY0POBZGhCO8dzNcMx4m0zcq15+TIeJx etAAWTPmzdbj+QzGfo/WrXXDkWFgGvtVqsogUgmPSPwmuz2Wwr9/wU6/y44rMWkgt5EjjzbZoU0 jCJN78qTIKe5lr5QfsSapm89Z12vIQNzYE4CJm/ibX0COe2JPzeKnmEWv27UkBaAV7qLthSja3h JfiN51AWxirnhCg== X-Developer-Key: i=da.gomez@samsung.com; a=openpgp; fpr=B2A7A9CFDD03B540FF58B27185F56EA4E9E8138F From: Daniel Gomez This redefines the concept of all targets but allows to really include 'all' hosts in the Ansible inventory file (hosts). Change playbooks hosts list to exclude localhost when using all. Signed-off-by: Daniel Gomez --- playbooks/blktests.yml | 2 +- playbooks/common.yml | 2 +- playbooks/create_data_partition.yml | 2 +- playbooks/cxl.yml | 2 +- playbooks/devconfig.yml | 2 +- playbooks/fstests.yml | 2 +- playbooks/gitr.yml | 2 +- playbooks/iscsi.yml | 2 +- playbooks/kdc.yml | 2 +- playbooks/krb5.yml | 2 +- playbooks/ktls.yml | 2 +- playbooks/ltp.yml | 2 +- playbooks/nfsd.yml | 2 +- playbooks/nfstest.yml | 2 +- playbooks/pkg.yml | 2 +- playbooks/pynfs.yml | 2 +- playbooks/reboot-limit.yml | 2 +- playbooks/roles/gen_hosts/templates/blktests.j2 | 1 + playbooks/roles/gen_hosts/templates/cxl.j2 | 1 + playbooks/roles/gen_hosts/templates/fstests.j2 | 1 + playbooks/roles/gen_hosts/templates/gitr.j2 | 1 + playbooks/roles/gen_hosts/templates/hosts.j2 | 2 ++ playbooks/roles/gen_hosts/templates/ltp.j2 | 1 + playbooks/roles/gen_hosts/templates/nfstest.j2 | 1 + playbooks/roles/gen_hosts/templates/pynfs.j2 | 1 + playbooks/roles/gen_hosts/templates/selftests.j2 | 1 + playbooks/roles/gen_hosts/templates/sysbench.j2 | 1 + playbooks/rxe.yml | 2 +- playbooks/selftests.yml | 2 +- playbooks/siw.yml | 2 +- playbooks/smbd.yml | 2 +- playbooks/sysbench.yml | 2 +- playbooks/terraform.yml | 2 +- playbooks/update_etc_hosts.yml | 2 +- scripts/guestfs.Makefile | 2 +- workflows/linux/Makefile | 2 +- 36 files changed, 37 insertions(+), 26 deletions(-) diff --git a/playbooks/blktests.yml b/playbooks/blktests.yml index 91b484fbef5f8868b97fff337eaf5011e4c7f9f6..256a6eaf38820e7a16ce96a3daf705daa73c6e52 100644 --- a/playbooks/blktests.yml +++ b/playbooks/blktests.yml @@ -1,5 +1,5 @@ --- - name: blktests - hosts: all + hosts: all:!localhost roles: - role: blktests diff --git a/playbooks/common.yml b/playbooks/common.yml index c4f0102b4bd5729d9ae347ae5c80a0a04576312e..4e7803bcad19accdc7612936743f38a8734210ee 100644 --- a/playbooks/common.yml +++ b/playbooks/common.yml @@ -1,5 +1,5 @@ --- - name: common - hosts: all + hosts: all:!localhost roles: - role: common diff --git a/playbooks/create_data_partition.yml b/playbooks/create_data_partition.yml index 9cf4d0506c830847d54aa02555e0cc705b031cb3..b2463122c8b3bcd32c87a2b13921350b04502404 100644 --- a/playbooks/create_data_partition.yml +++ b/playbooks/create_data_partition.yml @@ -1,5 +1,5 @@ --- - name: create_data_partition - hosts: all + hosts: all:!localhost roles: - role: create_data_partition diff --git a/playbooks/cxl.yml b/playbooks/cxl.yml index 65277d435a6fe13661febfea78181bf3a13e4dfc..9774044920269642512a5347ff3f112ee9d5f76f 100644 --- a/playbooks/cxl.yml +++ b/playbooks/cxl.yml @@ -1,5 +1,5 @@ --- - name: cxl - hosts: all + hosts: all:!localhost roles: - role: cxl diff --git a/playbooks/devconfig.yml b/playbooks/devconfig.yml index 45eb163bedd95c9cb8736f3cb68954df6dacf941..a934fb6b700f577bbe756e7a152481f44e2a9cc3 100644 --- a/playbooks/devconfig.yml +++ b/playbooks/devconfig.yml @@ -1,6 +1,6 @@ --- - name: devconfig - hosts: all + hosts: all:!localhost gather_facts: no roles: - role: devconfig diff --git a/playbooks/fstests.yml b/playbooks/fstests.yml index 08e5f465492090fe39b6214449fabc123bf8ff77..db15d6c9619b8466cc5f85bd0a06be3afcfa2bb0 100644 --- a/playbooks/fstests.yml +++ b/playbooks/fstests.yml @@ -4,6 +4,6 @@ roles: - role: fstests_prep_localhost -- hosts: all +- hosts: all:!localhost roles: - role: fstests diff --git a/playbooks/gitr.yml b/playbooks/gitr.yml index 5037a813f6b0a759bede52d7092af2bff218315b..e854477a20f595eb2ae3ac971dd47428eda8c049 100644 --- a/playbooks/gitr.yml +++ b/playbooks/gitr.yml @@ -1,5 +1,5 @@ --- - name: gitr - hosts: all + hosts: all:!localhost roles: - role: gitr diff --git a/playbooks/iscsi.yml b/playbooks/iscsi.yml index 5b3c4f356d8864761e5d768c81d740180a20740c..c2a2dcf9ac761e07fcd7c0f563da7fd2d8046dfa 100644 --- a/playbooks/iscsi.yml +++ b/playbooks/iscsi.yml @@ -1,5 +1,5 @@ --- - name: iscsi - hosts: all + hosts: all:!localhost roles: - role: iscsi diff --git a/playbooks/kdc.yml b/playbooks/kdc.yml index 27de7faf436dd3061fbe20c22bac5f0131a21356..bbc70a072ea368b66f8b4a407f4603ff08093975 100644 --- a/playbooks/kdc.yml +++ b/playbooks/kdc.yml @@ -1,5 +1,5 @@ --- - name: kdc - hosts: all + hosts: all:!localhost roles: - role: kdc diff --git a/playbooks/krb5.yml b/playbooks/krb5.yml index 8d65e560dab24b1a8f1457334c5a426dc40108c9..74307e794fa7d5d56a5c0095e08e59ffde91547c 100644 --- a/playbooks/krb5.yml +++ b/playbooks/krb5.yml @@ -1,5 +1,5 @@ --- - name: krb5 - hosts: all + hosts: all:!localhost roles: - role: krb5 diff --git a/playbooks/ktls.yml b/playbooks/ktls.yml index 70cc9c0c8fc3090083e4487298096252ebd5d7aa..5e14a8e2c37fb6f93d3edf9485b494e2aeb82dfe 100644 --- a/playbooks/ktls.yml +++ b/playbooks/ktls.yml @@ -1,5 +1,5 @@ --- - name: ktls - hosts: all + hosts: all:!localhost roles: - role: ktls diff --git a/playbooks/ltp.yml b/playbooks/ltp.yml index c01022f5f765b7e084c3806acd3d9ce249e445d6..8c46ceb69bfe4ec6760467d57cd58dee73fd6423 100644 --- a/playbooks/ltp.yml +++ b/playbooks/ltp.yml @@ -1,5 +1,5 @@ --- - name: ltp - hosts: all + hosts: all:!localhost roles: - role: ltp diff --git a/playbooks/nfsd.yml b/playbooks/nfsd.yml index edb8b1ff8de9eaf91cceedab7fe0a4672b1d7148..626f532a89c872f8743252d1dfc899ca27cf73f3 100644 --- a/playbooks/nfsd.yml +++ b/playbooks/nfsd.yml @@ -1,5 +1,5 @@ --- - name: nfsd - hosts: all + hosts: all:!localhost roles: - role: nfsd diff --git a/playbooks/nfstest.yml b/playbooks/nfstest.yml index 03715ebf45f90070ba1d57feab27720f23d28d5e..4c19c8ce63af7f2f6801ba6a3d91ca8c6aca000d 100644 --- a/playbooks/nfstest.yml +++ b/playbooks/nfstest.yml @@ -1,5 +1,5 @@ --- - name: nfstest - hosts: all + hosts: all:!localhost roles: - role: nfstest diff --git a/playbooks/pkg.yml b/playbooks/pkg.yml index 60bee3cbd0382e2f2e0047fe1fadf245b685bc34..3a613894589af9c1449248dc0993d25440d61f96 100644 --- a/playbooks/pkg.yml +++ b/playbooks/pkg.yml @@ -1,5 +1,5 @@ --- - name: pkg - hosts: all + hosts: all:!localhost roles: - role: pkg diff --git a/playbooks/pynfs.yml b/playbooks/pynfs.yml index ea01b9af880476e3bbe74114f996885f7e922148..8e8f8807bb3dc6c93678a948db7787efce7f51d3 100644 --- a/playbooks/pynfs.yml +++ b/playbooks/pynfs.yml @@ -1,5 +1,5 @@ --- - name: pynfs - hosts: all + hosts: all:!localhost roles: - role: pynfs diff --git a/playbooks/reboot-limit.yml b/playbooks/reboot-limit.yml index 160d6b9119788aed82e80740ecc2ab1edb208d89..095f76b4b0727e9ff0f8418316dfa86d24588884 100644 --- a/playbooks/reboot-limit.yml +++ b/playbooks/reboot-limit.yml @@ -1,5 +1,5 @@ --- - name: reboot-limit - hosts: all + hosts: all:!localhost roles: - role: reboot-limit diff --git a/playbooks/roles/gen_hosts/templates/blktests.j2 b/playbooks/roles/gen_hosts/templates/blktests.j2 index 1c2f8f774b7c67f6410017c764042fa89c0a2c7f..5bf50acbddac3d6f8685cb530f37cd602a97fba8 100644 --- a/playbooks/roles/gen_hosts/templates/blktests.j2 +++ b/playbooks/roles/gen_hosts/templates/blktests.j2 @@ -1,4 +1,5 @@ [all] +localhost ansible_connection=local {% for test_type in blktests_enabled_test_types %} {{ kdevops_host_prefix }}-{{ test_type }} {% if kdevops_baseline_and_dev %} diff --git a/playbooks/roles/gen_hosts/templates/cxl.j2 b/playbooks/roles/gen_hosts/templates/cxl.j2 index 1b3034e05d58e1093e3ce4e3fda2336edc0d2653..64bec4561b6c4ef92df4d561b16cc1f69c20e7b2 100644 --- a/playbooks/roles/gen_hosts/templates/cxl.j2 +++ b/playbooks/roles/gen_hosts/templates/cxl.j2 @@ -1,4 +1,5 @@ [all] +localhost ansible_connection=local {{ kdevops_hosts_prefix }} {% if kdevops_baseline_and_dev == True %} {{ kdevops_hosts_prefix }}-dev diff --git a/playbooks/roles/gen_hosts/templates/fstests.j2 b/playbooks/roles/gen_hosts/templates/fstests.j2 index abcdafd56686cf2a7b6d3e7f8405ba14041650d9..f5a383ebf383b37335ac120c607b6eb330a2267e 100644 --- a/playbooks/roles/gen_hosts/templates/fstests.j2 +++ b/playbooks/roles/gen_hosts/templates/fstests.j2 @@ -1,4 +1,5 @@ [all] +localhost ansible_connection=local {% for s in fstests_enabled_test_types %} {{ kdevops_host_prefix }}-{{ s }} {% if kdevops_baseline_and_dev %} diff --git a/playbooks/roles/gen_hosts/templates/gitr.j2 b/playbooks/roles/gen_hosts/templates/gitr.j2 index b8f393d63f96612a8ce28fd78d0e589adbbd722e..f4190cd0ecb3ba1dcf5385e4bfc7b529440ea81f 100644 --- a/playbooks/roles/gen_hosts/templates/gitr.j2 +++ b/playbooks/roles/gen_hosts/templates/gitr.j2 @@ -1,4 +1,5 @@ [all] +localhost ansible_connection=local {% for s in gitr_enabled_hosts %} {{ kdevops_host_prefix }}-{{ s }} {% if kdevops_baseline_and_dev %} diff --git a/playbooks/roles/gen_hosts/templates/hosts.j2 b/playbooks/roles/gen_hosts/templates/hosts.j2 index 5032f592e466e4705979ad0c4eb23e0bb3a7f950..d5f99a69cee87c651315d43e2da4c4f205bf5b12 100644 --- a/playbooks/roles/gen_hosts/templates/hosts.j2 +++ b/playbooks/roles/gen_hosts/templates/hosts.j2 @@ -7,9 +7,11 @@ its own jinja2 template file and define its own ansible task for its generation. #} {% if kdevops_workflows_dedicated_workflow %} [all] +localhost ansible_connection=local write-your-own-template-for-your-workflow-and-task {% else %} [all] +localhost ansible_connection=local {{ kdevops_hosts_prefix }} {% if kdevops_baseline_and_dev == True %} {{ kdevops_hosts_prefix }}-dev diff --git a/playbooks/roles/gen_hosts/templates/ltp.j2 b/playbooks/roles/gen_hosts/templates/ltp.j2 index 5b6ad9485d989c79b269831ad1af57c6970553c5..828fd63627184d98e21b11cb2025c7b67ad11e83 100644 --- a/playbooks/roles/gen_hosts/templates/ltp.j2 +++ b/playbooks/roles/gen_hosts/templates/ltp.j2 @@ -1,4 +1,5 @@ [all] +localhost ansible_connection=local {% for s in ltp_enabled_hosts %} {{ kdevops_host_prefix }}-{{ s }} {% if kdevops_baseline_and_dev %} diff --git a/playbooks/roles/gen_hosts/templates/nfstest.j2 b/playbooks/roles/gen_hosts/templates/nfstest.j2 index 6a0d6cdc76323ed721aa17747dee50e3fe50c774..0d3aae9fb1ae4616ec809d67bfa4db1da76b7591 100644 --- a/playbooks/roles/gen_hosts/templates/nfstest.j2 +++ b/playbooks/roles/gen_hosts/templates/nfstest.j2 @@ -1,4 +1,5 @@ [all] +localhost ansible_connection=local {% for s in nfstest_enabled_hosts %} {{ kdevops_host_prefix }}-{{ s }} {% if kdevops_baseline_and_dev %} diff --git a/playbooks/roles/gen_hosts/templates/pynfs.j2 b/playbooks/roles/gen_hosts/templates/pynfs.j2 index c018c5428828171cf4e652d0b2c20cc24b9da277..f5a4bb75aea194ad7000f8f4b82c4db4bfcf96ed 100644 --- a/playbooks/roles/gen_hosts/templates/pynfs.j2 +++ b/playbooks/roles/gen_hosts/templates/pynfs.j2 @@ -1,4 +1,5 @@ [all] +localhost ansible_connection=local {{ kdevops_hosts_prefix }}-nfsd [all:vars] ansible_python_interpreter = "{{ kdevops_python_interpreter }}" diff --git a/playbooks/roles/gen_hosts/templates/selftests.j2 b/playbooks/roles/gen_hosts/templates/selftests.j2 index 085b73375518e97f901b13728dccee7ecffa5119..e505bbf194b4c45e5978b6be89f28a2b131f06aa 100644 --- a/playbooks/roles/gen_hosts/templates/selftests.j2 +++ b/playbooks/roles/gen_hosts/templates/selftests.j2 @@ -1,4 +1,5 @@ [all] +localhost ansible_connection=local {% for test_type in selftests_enabled_test_types %} {{ kdevops_host_prefix }}-{{ test_type }} {% if kdevops_baseline_and_dev %} diff --git a/playbooks/roles/gen_hosts/templates/sysbench.j2 b/playbooks/roles/gen_hosts/templates/sysbench.j2 index 76503ab761760c7ee1605e6e5bdbe9c3f1fa1e16..107eebc5fbce5cbef508aa2fb834f44d4795ce82 100644 --- a/playbooks/roles/gen_hosts/templates/sysbench.j2 +++ b/playbooks/roles/gen_hosts/templates/sysbench.j2 @@ -1,4 +1,5 @@ [all] +localhost ansible_connection=local {% for test_type in enabled_sysbench_tests %} {{ kdevops_host_prefix }}-{{ test_type }} {% if kdevops_baseline_and_dev %} diff --git a/playbooks/rxe.yml b/playbooks/rxe.yml index 2204b10c136d5b2e0eb0e3262a9f2491fefdfce8..bf991c99f7204346daeed3094e5f595d2a2c00a9 100644 --- a/playbooks/rxe.yml +++ b/playbooks/rxe.yml @@ -1,5 +1,5 @@ --- - name: rxe - hosts: all + hosts: all:!localhost roles: - role: rxe diff --git a/playbooks/selftests.yml b/playbooks/selftests.yml index 2de584cb3c22ac08fa2d675ee5ef504671e8a389..bcfaa0ec02ab0de90d86443633b19933c8f65606 100644 --- a/playbooks/selftests.yml +++ b/playbooks/selftests.yml @@ -1,5 +1,5 @@ --- - name: selftests - hosts: all + hosts: all:!localhost roles: - role: selftests diff --git a/playbooks/siw.yml b/playbooks/siw.yml index cc546919681a15dff2a82472e1889711301b7a5c..83870ee1f8ee6c836964d96076dd89200466573c 100644 --- a/playbooks/siw.yml +++ b/playbooks/siw.yml @@ -1,5 +1,5 @@ --- - name: siw - hosts: all + hosts: all:!localhost roles: - role: siw diff --git a/playbooks/smbd.yml b/playbooks/smbd.yml index 258edec6c5889b2a98a450d230b07a684b28568a..61fa66998fb8e6dd0b8264e08b5fd01ce35c83da 100644 --- a/playbooks/smbd.yml +++ b/playbooks/smbd.yml @@ -1,5 +1,5 @@ --- - name: smbd - hosts: all + hosts: all:!localhost roles: - role: smbd diff --git a/playbooks/sysbench.yml b/playbooks/sysbench.yml index 9cc043ba9d7a67f44d5b297dc8d0ea9cbe6b89ae..0904a0f8a91a6223774592136402f8dceaba2a8d 100644 --- a/playbooks/sysbench.yml +++ b/playbooks/sysbench.yml @@ -1,5 +1,5 @@ --- - name: sysbench - hosts: all + hosts: all:!localhost roles: - role: sysbench diff --git a/playbooks/terraform.yml b/playbooks/terraform.yml index 1d212bd143ab49cc68b919022e8971d64c30270b..f140da906f2f1e0806250d4c51a457e2722a0851 100644 --- a/playbooks/terraform.yml +++ b/playbooks/terraform.yml @@ -1,6 +1,6 @@ --- - name: terraform - hosts: all + hosts: all:!localhost gather_facts: false roles: - role: terraform diff --git a/playbooks/update_etc_hosts.yml b/playbooks/update_etc_hosts.yml index 57d921ff627a6ffe798dfe90b49b769cd46fe62c..d1c8d5926b7a4344b124b14a66fb972484a3efe2 100644 --- a/playbooks/update_etc_hosts.yml +++ b/playbooks/update_etc_hosts.yml @@ -1,6 +1,6 @@ --- - name: update_etc_hosts - hosts: all + hosts: all:!localhost gather_facts: no roles: - role: update_etc_hosts diff --git a/scripts/guestfs.Makefile b/scripts/guestfs.Makefile index 8d4aac3e36694f5f4c3f0b040fa5bf6600641be2..39ff06efae31e4ff6a8fe23bfa2fbb11707f97a8 100644 --- a/scripts/guestfs.Makefile +++ b/scripts/guestfs.Makefile @@ -64,7 +64,7 @@ $(KDEVOPS_PROVISIONED_SSH): LIBVIRT_DEFAULT_URI=$(CONFIG_LIBVIRT_URI) \ $(TOPDIR)/scripts/update_ssh_config_guestfs.py; \ fi - $(Q)ansible $(ANSIBLE_VERBOSE) -i hosts all -m wait_for_connection + $(Q)ansible $(ANSIBLE_VERBOSE) -i hosts 'all:!localhost' -m wait_for_connection $(Q)touch $(KDEVOPS_PROVISIONED_SSH) install_libguestfs: diff --git a/workflows/linux/Makefile b/workflows/linux/Makefile index ecce273a4f67959fb01caaf51e909c55fa3680eb..4d208e3e2de3d40e87df1e4d06a46723d05fb4da 100644 --- a/workflows/linux/Makefile +++ b/workflows/linux/Makefile @@ -157,7 +157,7 @@ linux-reboot: PHONY += uname uname: - $(Q)ansible all -i hosts -b -m command -a "uname -r" -o \ + $(Q)ansible 'all:!localhost' -i hosts -b -m command -a "uname -r" -o \ | awk -F '|' '{gsub(/^ +| +$$/, "", $$2); printf "%-30s %s\n", $$1, $$4}' \ | sed -e 's|(stdout)||' -- 2.49.0