Terraform, Ansible, Splunk, Clustering, DevOps.
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 https://"{{master}}":8089 -replication_port 4598