Terraform, Ansible, DevOps, Splunk.
hostvars[groups['tag_Name_indexer2'][0]]['ansible_host'] | to_json }}" - name: indexer1 shell: /home/ec2-user/splunkforwarder/bin/splunk add forward-server {indexer1}:9997 ; /home/ec2-user/splunkforwarder/bin/splunk restart ; - name: indexer2 shell: /home/ec2-user/splunkforwarder/bin/splunk add