summaryrefslogtreecommitdiffstats
path: root/roles/ands_network/tasks/ganesha.yml
blob: 0f77ca8d899623b1ff0394135d9d949c8107ae61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
- name: Configure all storage ips in /etc/hosts
  lineinfile: dest="/etc/hosts" line="{{ ip }} {{ hostname }}" regexp="{{ hostname }}" state="present"
  when: 
    - hostvars[item]['ands_storage_network'] | default(ands_none) != ands_none
    - hostvars[item]['ands_facts_configured'] is defined
  vars:
    ip: "{{ hostvars[item]['ands_storage_ip'] }}"
    hostname: "{{ hostvars[item]['ands_hostname_storage'] }}"
  with_inventory_hostnames:
    - storage_nodes
    - new_storage_nodes