public inbox for kdevops@lists.linux.dev
 help / color / mirror / Atom feed
* [PATCH RFT 0/6] Fix Ansible warnings and simplify build dependency order
@ 2025-09-22 11:13 Daniel Gomez
  2025-09-22 11:13 ` [PATCH RFT 1/6] Makefile: fix target " Daniel Gomez
                   ` (6 more replies)
  0 siblings, 7 replies; 9+ messages in thread
From: Daniel Gomez @ 2025-09-22 11:13 UTC (permalink / raw)
  To: Luis Chamberlain, Chuck Lever; +Cc: kdevops, Daniel Gomez

This series fixes Ansible warnings that appear during terraform setup
and simplifies ansible-playbook calls by establishing proper Makefile
target dependency order.

Problem: Terraform targets were executing before ansible.cfg and hosts
files existed, causing "No inventory was parsed" and "provided hosts
list is empty" warnings.

Root cause: The include order in Makefile caused terraform dependencies
to be added to DEFAULT_DEPS before core Ansible files.

Solution:
1. Establish correct dependency order: extra_vars.yaml → ansible.cfg →
hosts → nodes → rest
2. Add missing localhost entry in the new generic inventory template
(generic.j2)
3. Use explicit connection flags for bootstrap operations and remove
warning suppressions. Note, this reintroduces the --connection and
--inventory flags to the ansible.cfg and inventory targets. We only need
these 2 here for obvious reasons. This allows to remove the warnings
variables introduced after actually removing the flags. Being explicit
with flags is preferred here than using ANSIBLE_* variables.

Signed-off-by: Daniel Gomez <da.gomez@samsung.com>
---
Daniel Gomez (6):
      Makefile: fix target dependency order
      gen_hosts: add localhost to generic workflow template
      ansible_cfg: fix Python interpreter discovery warning
      Makefile: remove warnings from ANSIBLE_CFG_FILE target
      Makefile: simplify KDEVOPS_NODES ansible-playbook call
      Makefile: add explicit connection for inventory generation

 Makefile                                           | 41 ++++++++++++----------
 playbooks/ansible_cfg.yml                          |  2 ++
 .../roles/gen_hosts/templates/workflows/generic.j2 |  1 +
 3 files changed, 25 insertions(+), 19 deletions(-)
---
base-commit: 53943da513f1cfc857844bf5f961c27a13d3060d
change-id: 20250922-makefile-targets-order-d917a35f550a

Best regards,
--  
Daniel Gomez <da.gomez@samsung.com>


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-09-23 20:12 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-22 11:13 [PATCH RFT 0/6] Fix Ansible warnings and simplify build dependency order Daniel Gomez
2025-09-22 11:13 ` [PATCH RFT 1/6] Makefile: fix target " Daniel Gomez
2025-09-22 11:13 ` [PATCH RFT 2/6] gen_hosts: add localhost to generic workflow template Daniel Gomez
2025-09-22 11:13 ` [PATCH RFT 3/6] ansible_cfg: fix Python interpreter discovery warning Daniel Gomez
2025-09-22 11:13 ` [PATCH RFT 4/6] Makefile: remove warnings from ANSIBLE_CFG_FILE target Daniel Gomez
2025-09-22 11:13 ` [PATCH RFT 5/6] Makefile: simplify KDEVOPS_NODES ansible-playbook call Daniel Gomez
2025-09-22 11:13 ` [PATCH RFT 6/6] Makefile: add explicit connection for inventory generation Daniel Gomez
2025-09-22 14:15 ` [PATCH RFT 0/6] Fix Ansible warnings and simplify build dependency order Chuck Lever
2025-09-23 20:12   ` Daniel Gomez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox