Resolution: name: Enable splunk boot-start via initd shell: '/usr/bin/sudo /bin/su - root -c "/opt/splunkforwarder/bin/splunk enable boot-start -user {{ splunk_user }} -systemd-managed 0 --answer-yes --auto-ports --no-prompt --accept-license"' become: true register: enable_bootstart changed_ when: '"Init script is configured to run at boot." in enable_bootstart.stdout' notify: update init.d to accept license Reload unit files if necessary start splunk tags: ['install'] name: "Disable boot-start" shell: '/usr/bin/sudo /bin/su - root -c "/opt/splunkforwarder/bin/splunk disable boot-start"' become: true register: disable_splunk_bootstart changed_when: '"Disabled" in disable_splunk_bootstart.stdout' tags: ['uninstall']
... View more