From ccf17c7740f3d25c12bf1a4913b5d874410ee233 Mon Sep 17 00:00:00 2001 From: Chris Hammer Date: Tue, 3 May 2022 11:57:28 -0400 Subject: [PATCH] fix provision_host --- file-creation-single.yml | 2 +- file-removal-test.yml | 2 +- inmem-test.yml | 7 +------ 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/file-creation-single.yml b/file-creation-single.yml index 71ce9c0..e33ef33 100644 --- a/file-creation-single.yml +++ b/file-creation-single.yml @@ -10,7 +10,7 @@ vars: - provision_host : "{{ tower_provision_host | default(ansible_play_hosts | random) }}" + provision_host: "{{ tower_provision_host | default(ansible_play_hosts | random) }}" tasks: diff --git a/file-removal-test.yml b/file-removal-test.yml index 900429e..f0f66f5 100644 --- a/file-removal-test.yml +++ b/file-removal-test.yml @@ -6,7 +6,7 @@ vars: - provision_host: "{{ tower_provision_host | default('localhost') }}" + provision_host: "{{ tower_provision_host | default(ansible_play_hosts | random) }}" tasks: diff --git a/inmem-test.yml b/inmem-test.yml index 46dab2c..88e32c7 100644 --- a/inmem-test.yml +++ b/inmem-test.yml @@ -10,12 +10,7 @@ vars: - lab_tower_hosts: - - lab-dev-1 - - lab-dev-2 - - lab-prod-1 - - lab-prod-2 - provision_host : "{{ tower_provision_host | default(lab_tower_hosts | random) }}" + provision_host: "{{ tower_provision_host | default(ansible_play_hosts | random) }}" tasks: