From 8c5fb0643f952c9d32238f4eaaf5875cd5cf9695 Mon Sep 17 00:00:00 2001 From: sdwru <40401953+sdwru@users.noreply.github.com> Date: Tue, 2 Mar 2021 16:35:50 -0800 Subject: [PATCH] Update AnsiblePlaybook.php Fix inventory method now working --- Asm/Ansible/Command/AnsiblePlaybook.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Asm/Ansible/Command/AnsiblePlaybook.php b/Asm/Ansible/Command/AnsiblePlaybook.php index a9c0e46..0ad9b51 100644 --- a/Asm/Ansible/Command/AnsiblePlaybook.php +++ b/Asm/Ansible/Command/AnsiblePlaybook.php @@ -292,7 +292,7 @@ public function inventory(array $hosts = []): AnsiblePlaybookInterface if (count($hosts) === 1) $hostList .= ','; - $this->addOption('--inventory', sprintf('"%s"', $hostList)); + $this->addOption('--inventory', $hostList); $this->hasInventory = true; return $this;