summaryrefslogtreecommitdiffstats
path: root/roles/hostnames
diff options
context:
space:
mode:
authorTomas Sedovic <tomas@sedovic.cz>2017-06-16 17:52:37 +0200
committerTomas Sedovic <tomas@sedovic.cz>2017-06-16 17:52:37 +0200
commitbf7e5e82872684088995cc55559f8e51fe35d4a9 (patch)
treecbb6bc98f51e9959d45f51d684d4799f7164d02b /roles/hostnames
parentca93151d4dee1f907cf578e3ab2b565f288c37c8 (diff)
downloadopenshift-bf7e5e82872684088995cc55559f8e51fe35d4a9.tar.gz
openshift-bf7e5e82872684088995cc55559f8e51fe35d4a9.tar.bz2
openshift-bf7e5e82872684088995cc55559f8e51fe35d4a9.tar.xz
openshift-bf7e5e82872684088995cc55559f8e51fe35d4a9.zip
Fix yamllint errors
Diffstat (limited to 'roles/hostnames')
-rw-r--r--roles/hostnames/tasks/main.yaml4
-rw-r--r--roles/hostnames/test/test.yaml17
-rw-r--r--roles/hostnames/vars/records.yaml54
3 files changed, 29 insertions, 46 deletions
diff --git a/roles/hostnames/tasks/main.yaml b/roles/hostnames/tasks/main.yaml
index bf142d653..c49852210 100644
--- a/roles/hostnames/tasks/main.yaml
+++ b/roles/hostnames/tasks/main.yaml
@@ -15,8 +15,8 @@
register: cloud_cfg
- name: Prevent cloud-init updates of hostname/fqdn (if applicable)
- lineinfile:
- dest: /etc/cloud/cloud.cfg
+ lineinfile:
+ dest: /etc/cloud/cloud.cfg
state: present
regexp: "{{ item.regexp }}"
line: "{{ item.line }}"
diff --git a/roles/hostnames/test/test.yaml b/roles/hostnames/test/test.yaml
index 34bf37942..0c56aea51 100644
--- a/roles/hostnames/test/test.yaml
+++ b/roles/hostnames/test/test.yaml
@@ -2,20 +2,3 @@
- hosts: all
roles:
- role: hostnames
-
-# - debug:
-#
-# - hosts: dns
-# roles:
-# - role: dns-server
-# named_config_views:
-# - name: private
-# acl_entry:
-# - 192.168.124.40/32
-# - 192.168.124.40/32
-# zone:
-# - dns_domain: example.com
-# - name: public
-# zone:
-# - dns_domain: example.com
-# - role: dns
diff --git a/roles/hostnames/vars/records.yaml b/roles/hostnames/vars/records.yaml
index 3bf12ae2b..0cadc8181 100644
--- a/roles/hostnames/vars/records.yaml
+++ b/roles/hostnames/vars/records.yaml
@@ -1,28 +1,28 @@
---
- - name: "Building Records"
- set_fact:
- dns_records_add:
- - view: private
- zone: example.com
- entries:
- - type: A
- hostname: master1.example.com
- ip: 172.16.15.94
- - type: A
- hostname: node1.example.com
- ip: 172.16.15.86
- - type: A
- hostname: node2.example.com
- ip: 172.16.15.87
- - view: public
- zone: example.com
- entries:
- - type: A
- hostname: master1.example.com
- ip: 10.3.10.116
- - type: A
- hostname: node1.example.com
- ip: 10.3.11.46
- - type: A
- hostname: node2.example.com
- ip: 10.3.12.6
+- name: "Building Records"
+ set_fact:
+ dns_records_add:
+ - view: private
+ zone: example.com
+ entries:
+ - type: A
+ hostname: master1.example.com
+ ip: 172.16.15.94
+ - type: A
+ hostname: node1.example.com
+ ip: 172.16.15.86
+ - type: A
+ hostname: node2.example.com
+ ip: 172.16.15.87
+ - view: public
+ zone: example.com
+ entries:
+ - type: A
+ hostname: master1.example.com
+ ip: 10.3.10.116
+ - type: A
+ hostname: node1.example.com
+ ip: 10.3.11.46
+ - type: A
+ hostname: node2.example.com
+ ip: 10.3.12.6