Changeset - fd4a0b8e06e6
[Not reviewed]
0 1 0
Branko Majic (branko) - 5 years ago 2021-01-08 13:45:49
branko@majic.rs
MAR-160: Set-up /etc/hosts on all servers, including all relevant machines.
1 file changed with 3 insertions and 1 deletions:
0 comments (0 inline, 0 general)
roles/common/molecule/default/prepare.yml
Show inline comments
 
@@ -48,13 +48,13 @@
 

	
 
    - name: Install apt-cacher-ng
 
      apt:
 
        name: apt-cacher-ng
 
        state: present
 

	
 
- hosts: client
 
- hosts: all
 
  become: true
 
  tasks:
 

	
 
    - name: Install tool for testing TCP connectivity
 
      apt:
 
        name: hping3
 
@@ -67,12 +67,14 @@
 
        line: "{{ item.key }} {{ item.value }}"
 
        owner: root
 
        group: root
 
        mode: 0644
 
        state: present
 
      with_dict:
 
        10.31.127.3: client1
 
        10.31.127.4: client2
 
        10.31.127.5: parameters-mandatory
 
        10.31.127.6: parameters-optional
 

	
 
- hosts: parameters-mandatory,parameters-optional
 
  become: true
 
  tasks:
0 comments (0 inline, 0 general)