From 6a16a03ec080dd0095399d9522be5c2607b2f88f Mon Sep 17 00:00:00 2001 From: Scott Dodson Date: Mon, 16 May 2016 16:30:41 -0400 Subject: Fix rhel_subscribe --- playbooks/byo/rhel_subscribe.yml | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'playbooks/byo/rhel_subscribe.yml') diff --git a/playbooks/byo/rhel_subscribe.yml b/playbooks/byo/rhel_subscribe.yml index 990ddd2f2..5702e960e 100644 --- a/playbooks/byo/rhel_subscribe.yml +++ b/playbooks/byo/rhel_subscribe.yml @@ -1,4 +1,8 @@ --- +- include: ../common/openshift-cluster/evaluate_groups.yml + vars_files: + - ../../byo/openshift-cluster/cluster_hosts.yml + - hosts: all vars: openshift_deployment_type: "{{ deployment_type }}" -- cgit v1.2.3 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(-) (limited to 'playbooks/byo/rhel_subscribe.yml') 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