Running Playbooks - my2ndhead/ansible_playbook_splunk GitHub Wiki
How to Run Playbooks
$ ansible-playbook -i hosts configure_repository.yml
$ ansible-playbook -i hosts download_splunk.yml
$ ansible-playbook -i hosts install_splunk.yml
$ ansible-playbook -i hosts --limit <hostname> install_splunk.yml
Note: Installation of Splunk requires remote root rights. It maybe necessary to specify e.g. --become-method
$ ansible-playbook -i hosts configure_licensemaster.yml [ -e "splunk_restart=true" ]
$ ansible-playbook -i hosts configure_searchpeer.yml [ -e "splunk_restart=true" ]
$ ansible-playbook -i hosts configure_searchHead.yml [ -e "splunk_restart=true" ]
$ ansible-playbook -i hosts configure_peernode.yml [ -e "splunk_restart=true" ]
$ ansible-playbook -i hosts configure_masternode.yml [ -e "splunk_restart=true" ]
$ ansible-playbook -i hosts configure_deployer.yml [ -e "splunk_restart=true" ]
$ ansible-playbook -i hosts install_shcmember.yml
$ ansible-playbook -i hosts configure_shcmember.yml [ -e "splunk_restart=true" ]
$ ansible-playbook -i hosts configure_deploymentserver.yml [ -e "splunk_restart=true" ]
$ ansible-playbook -i hosts configure_dmc.yml [ -e "splunk_restart=true" ]
$ ansible-playbook -i hosts configure_heavyforwarder.yml [ -e "splunk_restart=true" ]
$ ansible-playbook -i hosts deploy_apps.yml
ansible-playbook -i hosts deploy_apps.yml \
-e "splunk_reload_deploy_server=true" \
-e "splunk_apply_cluster_bundle=true" \
-e "splunk_apply_shcluster_bundle=true"
Note: deploy_apps.yml will ask for a Splunk Admin Username and Password. Leave empty if you don't use the "-e" options.