diff --git a/templates/buildkite-agent.override.conf.j2 b/templates/buildkite-agent.override.conf.j2 index 50fe53b..e982c7d 100644 --- a/templates/buildkite-agent.override.conf.j2 +++ b/templates/buildkite-agent.override.conf.j2 @@ -8,8 +8,8 @@ ExecStart={{ buildkite_agent_executable[ansible_os_family] }} {{ buildkite_agent User={{ buildkite_agent_username }} -# Only point the agent logs at files if the log dir var is set. Otherwise they will flow to stdout/stderr/journal. {% if buildkite_agent_logs_dir[ansible_os_family] is defined %} + # Point the agent logs at files if the user chooses a log dir. Otherwise they will flow to stdout/stderr/journal. StandardOutput=file:{{ buildkite_agent_logs_dir[ansible_os_family] }}/buildkite-agent.log StandardError=file:{{ buildkite_agent_logs_dir[ansible_os_family] }}/buildkite-agent.log {% endif %}