|
@@ -18,25 +18,6 @@
|
|
|
update_cache: true
|
|
|
changed_when: false
|
|
|
|
|
|
- hosts: jessie
|
|
|
become: true
|
|
|
tasks:
|
|
|
|
|
|
- name: Set-up the hosts file
|
|
|
lineinfile:
|
|
|
path: /etc/hosts
|
|
|
regexp: "^{{ item.key }}"
|
|
|
line: "{{ item.key }} {{ item.value }}"
|
|
|
owner: root
|
|
|
group: root
|
|
|
mode: 0644
|
|
|
state: present
|
|
|
with_dict:
|
|
|
10.31.127.10: "ldap-server backup-server"
|
|
|
10.31.127.20: "client-jessie"
|
|
|
10.31.127.30: "parameters-mandatory domain1 proxy.domain1 conference.domain1"
|
|
|
10.31.127.31: "parameters-optional domain2 proxy.domain2 conference.domain2 domain3 proxy.domain3 conference.domain3"
|
|
|
|
|
|
- hosts: stretch
|
|
|
become: true
|
|
|
tasks:
|