Terraform, Ansible, Splunk, Clustering, DevOps.
become: yes become_method: sudo tasks: - name: indexer_ip_1 set_fact: indexer1: "{{ hostvars[groups['tag_Name_indexer1'][0]]['ansible_host'] | to_json }}" - name: indexer_ip_2 set_fact: indexer2: "{{ hostvars[groups['tag_Name_indexer2'][0]]['ansible_host'] | to_json }}" - name: indexer1 shell: