From b5bce9cb170122b1507fbe953f8400e6c1f5b330 Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Sat, 20 Aug 2022 00:48:20 +0200 Subject: [PATCH] Adding variable to config. --- libvirt-ansible-python/README.md | 1 + libvirt-ansible-python/__main__.py | 1 + 2 files changed, 2 insertions(+) diff --git a/libvirt-ansible-python/README.md b/libvirt-ansible-python/README.md index 4c83786..0c8e4b3 100644 --- a/libvirt-ansible-python/README.md +++ b/libvirt-ansible-python/README.md @@ -6,4 +6,5 @@ To quickly set up your pulumi deployment, configure the following settings: $ pulumi config set image_url --plaintext "https://cdimage.debian.org/images/cloud/bullseye-backports/20220711-1073/debian-11-backports-generic-amd64-20220711-1073.qcow2" $ pulumi config set disksize --plaintext 20 $ pulumi config set memory --plaintext 2048 + $ pulumi config set ansible_playbook --plaintext deploy.yml diff --git a/libvirt-ansible-python/__main__.py b/libvirt-ansible-python/__main__.py index a6a4ef8..79e8348 100644 --- a/libvirt-ansible-python/__main__.py +++ b/libvirt-ansible-python/__main__.py @@ -65,6 +65,7 @@ inventory = command.local.Command("a-inventory", ) # Applying the command +ansible_playbook = config.require("ansible_playbook") execute_ansible = command.local.Command("a-deploy", create = f"ansible-playbook {ansible_playbook}", delete = "rm -f ./ansible.log",