From 3179a3428e4c2f4ceb7423fe828058073375c52a Mon Sep 17 00:00:00 2001 From: Matt Birkholz Date: Mon, 22 Dec 2025 09:30:36 -0700 Subject: [PATCH] Use import_role rather than import_playbook. The latter caused the current working directory to change, so the play updated =Institute/private/vars.pl= instead of =private/vars.pl=. Roles expect their CWD to be the same as the CWD of the play that executed them (thus ~import_role~ does not frob the CWD?). --- README.org | 6 +++++- playbooks/check-inst-vars.yml | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/README.org b/README.org index e3eda9f..facceca 100644 --- a/README.org +++ b/README.org @@ -2869,7 +2869,11 @@ code block "duplicates" the action of the institute's #+CAPTION: [[file:playbooks/check-inst-vars.yml][=playbooks/check-inst-vars.yml=]] #+BEGIN_SRC conf :tangle playbooks/check-inst-vars.yml -- import_playbook: ../Institute/playbooks/check-inst-vars.yml +- hosts: localhost + gather_facts: no + tasks: + - import_role: + name: check-inst-vars #+END_SRC ** The Upgrade Command diff --git a/playbooks/check-inst-vars.yml b/playbooks/check-inst-vars.yml index f22b887..3cae584 100644 --- a/playbooks/check-inst-vars.yml +++ b/playbooks/check-inst-vars.yml @@ -1 +1,5 @@ -- import_playbook: ../Institute/playbooks/check-inst-vars.yml +- hosts: localhost + gather_facts: no + tasks: + - import_role: + name: check-inst-vars -- 2.47.3