From: Daniel Gomez <da.gomez@kernel.org>
To: Luis Chamberlain <mcgrof@kernel.org>,
Chuck Lever <chuck.lever@oracle.com>
Cc: kdevops@lists.linux.dev, Daniel Gomez <da.gomez@kernel.org>,
Daniel Gomez <da.gomez@samsung.com>
Subject: [PATCH v2 02/10] playbooks: fix playbook name for localhost plays
Date: Fri, 02 May 2025 14:13:19 +0200 [thread overview]
Message-ID: <20250502-ansible_cfg_inventory-v2-2-d3c19ff4aa6e@samsung.com> (raw)
In-Reply-To: <20250502-ansible_cfg_inventory-v2-0-d3c19ff4aa6e@samsung.com>
From: Daniel Gomez <da.gomez@samsung.com>
Fix name rule by naming all the playbooks that run in localhost.
https://ansible.readthedocs.io/projects/lint/rules/name/
Signed-off-by: Daniel Gomez <da.gomez@samsung.com>
---
playbooks/bootlinux-local.yml | 3 ++-
playbooks/bringup_guestfs.yml | 3 ++-
playbooks/build_qemu.yml | 3 ++-
playbooks/fstests.yml | 3 ++-
playbooks/gen-pci-kconfig.yml | 3 ++-
playbooks/gen_hosts.yml | 3 ++-
playbooks/gen_nodes.yml | 3 ++-
playbooks/gen_tfvars.yml | 3 ++-
playbooks/hypervisor-tuning.yml | 3 ++-
| 3 ++-
playbooks/install_systemd_journal_remote.yml | 3 ++-
playbooks/install_systemd_timesyncd.yml | 3 ++-
playbooks/install_terraform.yml | 3 ++-
playbooks/install_vagrant_boxes.yml | 3 ++-
playbooks/kdevops_archive.yml | 3 ++-
playbooks/libvirt_pcie_passthrough.yml | 3 ++-
playbooks/libvirt_storage_pool_create.yml | 3 ++-
playbooks/libvirt_user.yml | 3 ++-
playbooks/linux-mirror.yml | 3 ++-
playbooks/postfix_relay_host.yml | 3 ++-
playbooks/update_ssh_config_guestfs.yml | 3 ++-
playbooks/update_ssh_config_vagrant.yml | 3 ++-
22 files changed, 44 insertions(+), 22 deletions(-)
diff --git a/playbooks/bootlinux-local.yml b/playbooks/bootlinux-local.yml
index e342f0e56fb11da6bdc11e9a011ce21b07e84819..c8e391522c2635196e6d34b8c3312d44bf64fef2 100644
--- a/playbooks/bootlinux-local.yml
+++ b/playbooks/bootlinux-local.yml
@@ -1,5 +1,6 @@
---
-- hosts: localhost
+- name: bootlinux-local
+ hosts: localhost
connection: local
roles:
- role: bootlinux-local
diff --git a/playbooks/bringup_guestfs.yml b/playbooks/bringup_guestfs.yml
index 80a1afcd0a69912a4f2e8c23eba1a108c4df7809..08fcabbcc838bda167cae6b4e0b5fb675900ddf0 100644
--- a/playbooks/bringup_guestfs.yml
+++ b/playbooks/bringup_guestfs.yml
@@ -1,4 +1,5 @@
---
-- hosts: localhost
+- name: bringup_guestfs
+ hosts: localhost
roles:
- role: bringup_guestfs
diff --git a/playbooks/build_qemu.yml b/playbooks/build_qemu.yml
index d094c258246588b88643901bf8f11e29129655e4..d7056ad472d67f971cf5d006d0a0c54c5fd34682 100644
--- a/playbooks/build_qemu.yml
+++ b/playbooks/build_qemu.yml
@@ -1,4 +1,5 @@
---
-- hosts: localhost
+- name: build_qemu
+ hosts: localhost
roles:
- role: build_qemu
diff --git a/playbooks/fstests.yml b/playbooks/fstests.yml
index de8cb251f29c11bd0f85a347534f7b00f2285ab7..08e5f465492090fe39b6214449fabc123bf8ff77 100644
--- a/playbooks/fstests.yml
+++ b/playbooks/fstests.yml
@@ -1,5 +1,6 @@
---
-- hosts: localhost
+- name: fstests
+ hosts: localhost
roles:
- role: fstests_prep_localhost
diff --git a/playbooks/gen-pci-kconfig.yml b/playbooks/gen-pci-kconfig.yml
index a20aba761a8c91f40e42cdf719b4d1635931ca58..ede0c16a451f4c538078fcf40aed45de036bbb1c 100644
--- a/playbooks/gen-pci-kconfig.yml
+++ b/playbooks/gen-pci-kconfig.yml
@@ -1,4 +1,5 @@
---
-- hosts: localhost
+- name: gen-pci-kconfig
+ hosts: localhost
roles:
- role: gen_pci_kconfig
diff --git a/playbooks/gen_hosts.yml b/playbooks/gen_hosts.yml
index 942b4f2ac52c91d4c1a0272c9bd2c29f4d65345b..67207101d87385ef149b43e7e066513d1b516903 100644
--- a/playbooks/gen_hosts.yml
+++ b/playbooks/gen_hosts.yml
@@ -1,4 +1,5 @@
---
-- hosts: localhost
+- name: gen_hosts
+ hosts: localhost
roles:
- role: gen_hosts
diff --git a/playbooks/gen_nodes.yml b/playbooks/gen_nodes.yml
index c298b344647cf3d416b49957aeee75fc0c834da8..4989ce733de26fa4884247e390c14fa3fa332679 100644
--- a/playbooks/gen_nodes.yml
+++ b/playbooks/gen_nodes.yml
@@ -1,4 +1,5 @@
---
-- hosts: localhost
+- name: gen_nodes
+ hosts: localhost
roles:
- role: gen_nodes
diff --git a/playbooks/gen_tfvars.yml b/playbooks/gen_tfvars.yml
index 5ff85af6ab82d260c5bacbb7d334c6838e9b5ab2..ab6048744828de5badee5df59609f27ad9b27c80 100644
--- a/playbooks/gen_tfvars.yml
+++ b/playbooks/gen_tfvars.yml
@@ -1,4 +1,5 @@
---
-- hosts: localhost
+- name: gen_tfvars
+ hosts: localhost
roles:
- role: gen_tfvars
diff --git a/playbooks/hypervisor-tuning.yml b/playbooks/hypervisor-tuning.yml
index 29f735d8f8fcf21fd87aeaaaab541721d5a9f1da..a599c828e0c8d1e6a48c6fdc0a63b907962a4180 100644
--- a/playbooks/hypervisor-tuning.yml
+++ b/playbooks/hypervisor-tuning.yml
@@ -1,4 +1,5 @@
---
-- hosts: localhost
+- name: hypervisor-tuning
+ hosts: localhost
roles:
- role: hypervisor-tuning
--git a/playbooks/install-menuconfig-deps.yml b/playbooks/install-menuconfig-deps.yml
index 845b287073842feed7bb051ae16a627fcc9f4fdc..4400e59e44cf2ccaec6be2193c940f0c8c46a8b9 100644
--- a/playbooks/install-menuconfig-deps.yml
+++ b/playbooks/install-menuconfig-deps.yml
@@ -1,4 +1,5 @@
---
-- hosts: localhost
+- name: install-menuconfig-deps
+ hosts: localhost
roles:
- role: install-menuconfig-deps
diff --git a/playbooks/install_systemd_journal_remote.yml b/playbooks/install_systemd_journal_remote.yml
index 46014d285b0b309dc4c8eb527fede3abefd453ee..26998b84691ae009f68dcd204df26d2777b5add3 100644
--- a/playbooks/install_systemd_journal_remote.yml
+++ b/playbooks/install_systemd_journal_remote.yml
@@ -1,4 +1,5 @@
---
-- hosts: localhost
+- name: install_systemd_journal_remote
+ hosts: localhost
roles:
- role: install_systemd_journal_remote
diff --git a/playbooks/install_systemd_timesyncd.yml b/playbooks/install_systemd_timesyncd.yml
index ed1a31e64790d6b9bd4d95e591e71fb0505a739f..bcda04007f6d4288c5dd8db28bf03e966a7ad5c9 100644
--- a/playbooks/install_systemd_timesyncd.yml
+++ b/playbooks/install_systemd_timesyncd.yml
@@ -1,4 +1,5 @@
---
-- hosts: localhost
+- name: install_systemd_timesyncd
+ hosts: localhost
roles:
- role: install_systemd_timesyncd
diff --git a/playbooks/install_terraform.yml b/playbooks/install_terraform.yml
index 1426378eee25cc12c75f8f6faeaedbb94228ad69..9b4de68a6a8174ed465321bf526ca2e546b60be2 100644
--- a/playbooks/install_terraform.yml
+++ b/playbooks/install_terraform.yml
@@ -1,4 +1,5 @@
---
-- hosts: localhost
+- name: install_terraform
+ hosts: localhost
roles:
- role: install_terraform
diff --git a/playbooks/install_vagrant_boxes.yml b/playbooks/install_vagrant_boxes.yml
index 8cffb36a981e302b4b924e94fbd0b7a8850d4e6f..01c0728864a1dadcac35a637d5e246dd76376dde 100644
--- a/playbooks/install_vagrant_boxes.yml
+++ b/playbooks/install_vagrant_boxes.yml
@@ -1,5 +1,6 @@
---
-- hosts: localhost
+- name: install_vagrant_boxes
+ hosts: localhost
tasks:
- include_role:
name: install_vagrant_boxes
diff --git a/playbooks/kdevops_archive.yml b/playbooks/kdevops_archive.yml
index a61f794ae12bf90e204eb7fdc2d59045d57a1d59..2c5f833928fa31afd78725ca9588aa8ad9aff4fe 100644
--- a/playbooks/kdevops_archive.yml
+++ b/playbooks/kdevops_archive.yml
@@ -1,4 +1,5 @@
---
-- hosts: localhost
+- name: kdevops_archive
+ hosts: localhost
roles:
- role: kdevops_archive
diff --git a/playbooks/libvirt_pcie_passthrough.yml b/playbooks/libvirt_pcie_passthrough.yml
index 39d5c8ee38fc60bdf397c0fae82ba497815e139e..2e83fef1b86b93bdb475f5e207180b459fc49722 100644
--- a/playbooks/libvirt_pcie_passthrough.yml
+++ b/playbooks/libvirt_pcie_passthrough.yml
@@ -1,4 +1,5 @@
---
-- hosts: localhost
+- name: libvirt_pcie_passthrough
+ hosts: localhost
roles:
- role: libvirt_pcie_passthrough
diff --git a/playbooks/libvirt_storage_pool_create.yml b/playbooks/libvirt_storage_pool_create.yml
index f127f5e4311f499c6b80251406fcf180854e4406..9bec5914cfc33c96f6cda6f14fbf374d957143eb 100644
--- a/playbooks/libvirt_storage_pool_create.yml
+++ b/playbooks/libvirt_storage_pool_create.yml
@@ -1,4 +1,5 @@
---
-- hosts: localhost
+- name: libvirt_storage_pool_create
+ hosts: localhost
roles:
- role: libvirt_storage_pool_create
diff --git a/playbooks/libvirt_user.yml b/playbooks/libvirt_user.yml
index 6e3889ca65cfd4a50edbf2c1f8b747dd554bc1e4..84e5637b554bf53e23d97ff72cc04b7f5ce04819 100644
--- a/playbooks/libvirt_user.yml
+++ b/playbooks/libvirt_user.yml
@@ -1,4 +1,5 @@
---
-- hosts: localhost
+- name: libvirt_user
+ hosts: localhost
roles:
- role: libvirt_user
diff --git a/playbooks/linux-mirror.yml b/playbooks/linux-mirror.yml
index 0808ebc1df80e197807703b547ae41f66192d0f1..05bfa02f720dd454f941cc513ec774b69f07bf5e 100644
--- a/playbooks/linux-mirror.yml
+++ b/playbooks/linux-mirror.yml
@@ -1,4 +1,5 @@
---
-- hosts: localhost
+- name: linux-mirror
+ hosts: localhost
roles:
- role: linux-mirror
diff --git a/playbooks/postfix_relay_host.yml b/playbooks/postfix_relay_host.yml
index b04079bcc3190b30a79a7898b64171d25c2889c3..507ca56998c95bc40f0dcc368d881bacc60e1502 100644
--- a/playbooks/postfix_relay_host.yml
+++ b/playbooks/postfix_relay_host.yml
@@ -1,4 +1,5 @@
---
-- hosts: localhost
+- name: postfix_relay_host
+ hosts: localhost
roles:
- role: postfix_relay_host
diff --git a/playbooks/update_ssh_config_guestfs.yml b/playbooks/update_ssh_config_guestfs.yml
index 346b90245637ee7ca1297cfd9c0838c1d9a5ef25..3fe45a8c872356a503b17715263811274929de2f 100644
--- a/playbooks/update_ssh_config_guestfs.yml
+++ b/playbooks/update_ssh_config_guestfs.yml
@@ -1,4 +1,5 @@
---
-- hosts: localhost
+- name: update_ssh_config_guestfs
+ hosts: localhost
roles:
- role: update_ssh_config_guestfs
diff --git a/playbooks/update_ssh_config_vagrant.yml b/playbooks/update_ssh_config_vagrant.yml
index c8d0e9962d46bb504c89611c8c5c753a72a61775..7a2162e96c1d90014bb86129f27e303690ffc31f 100644
--- a/playbooks/update_ssh_config_vagrant.yml
+++ b/playbooks/update_ssh_config_vagrant.yml
@@ -1,4 +1,5 @@
---
-- hosts: localhost
+- name: update_ssh_config_vagrant
+ hosts: localhost
roles:
- role: update_ssh_config_vagrant
--
2.49.0
next prev parent reply other threads:[~2025-05-02 12:13 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-02 12:13 [PATCH v2 00/10] Define Ansible inventory in the Ansible Configuration file Daniel Gomez
2025-05-02 12:13 ` [PATCH v2 01/10] playbooks: fix playbook name for all hosts plays Daniel Gomez
2025-05-02 12:13 ` Daniel Gomez [this message]
2025-05-02 12:13 ` [PATCH v2 03/10] Makefile: use long form of limit argument for clarity Daniel Gomez
2025-05-02 12:13 ` [PATCH v2 04/10] Makefile: print target when debug Daniel Gomez
2025-05-02 12:13 ` [PATCH v2 05/10] .github/workflows/fstests.yml: enable make verbosity Daniel Gomez
2025-05-02 12:13 ` [PATCH v2 06/10] ansible_cfg: add inventory support Daniel Gomez
2025-05-02 12:13 ` [PATCH v2 07/10] gen_hosts: templates: add localhost to all hosts Daniel Gomez
2025-05-02 18:56 ` Chuck Lever
2025-05-03 17:45 ` Daniel Gomez
2025-05-02 12:13 ` [PATCH v2 08/10] Makefile: use inventory from ansible.cfg Daniel Gomez
2025-05-02 13:47 ` Daniel Gomez
2025-05-02 16:08 ` Chuck Lever
2025-05-02 19:11 ` Daniel Gomez
2025-05-02 12:13 ` [PATCH v2 09/10] ansible_cfg: add support to change ansible.cfg file location Daniel Gomez
2025-05-02 12:13 ` [PATCH v2 10/10] docs: ansible_cfg: add documentation Daniel Gomez
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250502-ansible_cfg_inventory-v2-2-d3c19ff4aa6e@samsung.com \
--to=da.gomez@kernel.org \
--cc=chuck.lever@oracle.com \
--cc=da.gomez@samsung.com \
--cc=kdevops@lists.linux.dev \
--cc=mcgrof@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox