Browse Source

Wrap openshift_hosted_logging include_role within a block.

Andrew Butcher 8 years ago
parent
commit
d20a740374
1 changed files with 7 additions and 4 deletions
  1. 7 4
      playbooks/common/openshift-cluster/openshift_hosted.yml

+ 7 - 4
playbooks/common/openshift-cluster/openshift_hosted.yml

@@ -47,12 +47,15 @@
     when: ( openshift.common.version_gte_3_3_or_1_3  | bool ) and ( openshift_hosted_manage_registry | default(true) | bool ) and not (openshift.docker.hosted_registry_insecure | default(false) | bool)
 
 - name: Update master-config for publicLoggingURL
-  hosts: masters:!oo_first_master
+  hosts: oo_masters_to_config:!oo_first_master
+  tags:
+  - hosted
   pre_tasks:
   - set_fact:
       logging_hostname: "{{ openshift_hosted_logging_hostname | default('kibana.' ~ (openshift_master_default_subdomain | default('router.default.svc.cluster.local', true))) }}"
   tasks:
-  - include_role:
-      name: openshift_hosted_logging
-      tasks_from: update_master_config
+  - block:
+    - include_role:
+        name: openshift_hosted_logging
+        tasks_from: update_master_config
     when: openshift_hosted_logging_deploy | default(false) | bool