From d6e301e776ce631e13d8148041ecd86d23c543fb Mon Sep 17 00:00:00 2001 From: Scott Dodson Date: Mon, 16 May 2016 16:53:28 -0400 Subject: Fix for ansible v2 --- playbooks/byo/rhel_subscribe.yml | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/playbooks/byo/rhel_subscribe.yml b/playbooks/byo/rhel_subscribe.yml index 5702e960e..a21aa257f 100644 --- a/playbooks/byo/rhel_subscribe.yml +++ b/playbooks/byo/rhel_subscribe.yml @@ -1,7 +1,21 @@ --- -- include: ../common/openshift-cluster/evaluate_groups.yml - vars_files: - - ../../byo/openshift-cluster/cluster_hosts.yml +- hosts: localhost + connection: local + become: no + gather_facts: no + tasks: + - include_vars: openshift-cluster/cluster_hosts.yml + - add_host: + name: "{{ item }}" + groups: l_oo_all_hosts + with_items: g_all_hosts + +- hosts: l_oo_all_hosts + gather_facts: no + tasks: + - include_vars: openshift-cluster/cluster_hosts.yml + +- include: ../common/openshift-cluster/evaluate_groups.yml - hosts: all vars: -- cgit v1.2.3