Terraform, Ansible, DevOps, Splunk.
1 - hosts: tag_Name_indexer* user: ec2-user become: yes become_method: sudo tasks: - name: master_ip set_fact: master: "{{ hostvars[groups['tag_Name_master'][0]]['ansible_host'] | to_json }}" - name: Indexer shell: /home/ec2-user/splunk/bin/splunk edit cluster-config -mode slave -master_uri