If I run a playbook with the install tasks on 3 instances where one is the Splunk server with the full installation and 2 of them are universal forwarders (uf), only the steps for full is performed when it comes to download and unarchive:
TASK [splunk.splunk : debug] ***************************************************
ok: [splunk] => {
"msg": "The filename that will be downloaded is splunk-9.0.3-dd0128b1f8cd-Linux-x86_64.tgz"
}
ok: [test-host] => {
"msg": "The filename that will be downloaded is splunkforwarder-9.0.3-dd0128b1f8cd-Linux-x86_64.tgz"
}
ok: [syslog-server] => {
"msg": "The filename that will be downloaded is splunkforwarder-9.0.3-dd0128b1f8cd-Linux-x86_64.tgz"
}
TASK [splunk.splunk : debug] ***************************************************
ok: [splunk] => {
"msg": "The upgrade file will be downloaded to /tmp/splunk-9.0.3-dd0128b1f8cd-Linux-x86_64.tgz"
}
ok: [test-host] => {
"msg": "The upgrade file will be downloaded to /tmp/splunkforwarder-9.0.3-dd0128b1f8cd-Linux-x86_64.tgz"
}
ok: [syslog-server] => {
"msg": "The upgrade file will be downloaded to /tmp/splunkforwarder-9.0.3-dd0128b1f8cd-Linux-x86_64.tgz"
}
TASK [splunk.splunk : Download Splunk full package] ****************************
ok: [splunk -> localhost]
TASK [splunk.splunk : Unarchive Splunk full package to /opt/splunk] ************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: If you are using a module and expect the file to exist on the remote, see the remote_src option
fatal: [syslog-server]: FAILED! => {"changed": false, "msg": "Could not find or access '/tmp/splunkforwarder-9.0.3-dd0128b1f8cd-Linux-x86_64.tgz' on the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option"}
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: If you are using a module and expect the file to exist on the remote, see the remote_src option
fatal: [test-host]: FAILED! => {"changed": false, "msg": "Could not find or access '/tmp/splunkforwarder-9.0.3-dd0128b1f8cd-Linux-x86_64.tgz' on the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option"}
changed: [splunk]
If I run a playbook with the install tasks on 3 instances where one is the Splunk server with the
full
installation and 2 of them are universal forwarders (uf
), only the steps forfull
is performed when it comes to download and unarchive: