Browse Source

Appease yamllint

Tomas Sedovic 6 years ago
parent
commit
d136ccfb22
1 changed files with 15 additions and 15 deletions
  1. 15 15
      roles/openshift_openstack/tasks/generate-dns.yml

+ 15 - 15
roles/openshift_openstack/tasks/generate-dns.yml

@@ -4,20 +4,20 @@
     private_records: "{{ private_records | default([]) + [ { 'type': 'A', 'fqdn': hostvars[item]['ansible_hostname'] + openshift_openstack_private_hostname_suffix + '.' + openshift_openstack_full_dns_domain, 'ip': hostvars[item]['private_v4'] } ] }}"
   with_items: "{{ groups['cluster_hosts'] }}"
   when:
-  - hostvars[item]['private_v4'] is defined
-  - hostvars[item]['private_v4'] is not none
-  - hostvars[item]['private_v4'] | string
+    - hostvars[item]['private_v4'] is defined
+    - hostvars[item]['private_v4'] is not none
+    - hostvars[item]['private_v4'] | string
 
 - name: "Add wildcard records to the private A records for infrahosts"
   set_fact:
     private_records: "{{ private_records | default([]) + [ { 'type': 'A', 'fqdn': '*.' + hostvars[groups.masters[0]].openshift_master_default_subdomain, 'ip': hostvars[item]['private_v4'] } ] }}"
   with_items: "{{ groups['infra_hosts'] }}"
   when:
-  - groups.masters
-  - hostvars[groups.masters[0]].openshift_master_default_subdomain is defined
-  - openshift_openstack_public_router_ip is defined
-  - openshift_openstack_public_router_ip is not none
-  - openshift_openstack_public_router_ip | string
+    - groups.masters
+    - hostvars[groups.masters[0]].openshift_master_default_subdomain is defined
+    - openshift_openstack_public_router_ip is defined
+    - openshift_openstack_public_router_ip is not none
+    - openshift_openstack_public_router_ip | string
 
 - debug: var=openshift_openstack_private_api_ip
 - name: "Add public master cluster hostname records to the private A records"
@@ -59,18 +59,18 @@
     public_records: "{{ public_records | default([]) + [ { 'type': 'A', 'fqdn': hostvars[item]['ansible_hostname'] + openshift_openstack_public_hostname_suffix + '.' + openshift_openstack_full_dns_domain, 'ip': hostvars[item]['public_v4'] } ] }}"
   with_items: "{{ groups['cluster_hosts'] }}"
   when:
-  - hostvars[item]['public_v4'] is defined
-  - hostvars[item]['public_v4'] | string
+    - hostvars[item]['public_v4'] is defined
+    - hostvars[item]['public_v4'] | string
 
 - name: "Add wildcard record to the public A records"
   set_fact:
     public_records: "{{ public_records | default([]) + [ { 'type': 'A', 'fqdn': '*.' + hostvars[groups.masters[0]].openshift_master_default_subdomain, 'ip': openshift_openstack_public_router_ip } ] }}"
   when:
-  - groups.masters
-  - hostvars[groups.masters[0]].openshift_master_default_subdomain is defined
-  - openshift_openstack_public_router_ip is defined
-  - openshift_openstack_public_router_ip is not none
-  - openshift_openstack_public_router_ip | string
+    - groups.masters
+    - hostvars[groups.masters[0]].openshift_master_default_subdomain is defined
+    - openshift_openstack_public_router_ip is defined
+    - openshift_openstack_public_router_ip is not none
+    - openshift_openstack_public_router_ip | string
 
 - name: "Add the public API entry point record"
   set_fact: