From d0dc61ae4779515a8198fe8206087c7f909263a8 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Mon, 4 Apr 2022 15:54:07 -0700 Subject: [PATCH] batcave: adjust playbook to avoid import_playbook deprecating passing vars directly Hopefully this will fix: [DEPRECATION WARNING]: Additional parameters in import_playbook statements are deprecated. Use 'vars' instead. See 'import_playbook' documentation for examples. This feature will be removed in version 2.14. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. Signed-off-by: Kevin Fenzi --- playbooks/groups/batcave.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/playbooks/groups/batcave.yml b/playbooks/groups/batcave.yml index ef54e76567..abab249e69 100644 --- a/playbooks/groups/batcave.yml +++ b/playbooks/groups/batcave.yml @@ -1,4 +1,6 @@ -- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml myhosts=batcave" +- import_playbook: "{{ ansible_base }}/ansible/playbooks/include/virt-create.yml" + vars: + myhosts: batcave - name: make the box be real hosts: batcave