You've already forked ansible-role-common
Add molecule scenario
This commit is contained in:
@@ -1,4 +1,13 @@
|
||||
---
|
||||
- name: Ensure resolvers set
|
||||
template:
|
||||
src: etc.resolv.conf.j2
|
||||
dest: /etc/resolv.conf
|
||||
mode: u+rw,a+r
|
||||
tags: dns
|
||||
when:
|
||||
- ansible_virtualization_type != "docker"
|
||||
|
||||
- name: Ensure DNS and SSH common config
|
||||
template:
|
||||
src: "{{ item.src }}"
|
||||
@@ -10,10 +19,6 @@
|
||||
dest: /etc/sysconfig/network,
|
||||
mode: u+rw,a+r
|
||||
}
|
||||
- { src: etc.resolv.conf.j2,
|
||||
dest: /etc/resolv.conf,
|
||||
mode: u+rw,a+r
|
||||
}
|
||||
tags: dns
|
||||
|
||||
- name: Ensure hosts file correct
|
||||
@@ -42,6 +47,8 @@
|
||||
- {regexp: "^{{ ansible_default_ipv4.address }}.*{{ ansible_nodename.split('.')[0] }}$",
|
||||
line: "{{ ansible_default_ipv4.address }} {{ inventory_hostname }}.{{ domain }} {{ inventory_hostname }}"
|
||||
}
|
||||
when:
|
||||
- ansible_virtualization_type != "docker"
|
||||
|
||||
- name: Ensure NetworkManager does not fiddle DNS
|
||||
ini_file:
|
||||
|
||||
Reference in New Issue
Block a user