How do you launch your systems?

I didn’t, but it looks like Discourse removes anything indented. Here is the data without an indent.

[Unit]
Description=Robot software control system
After=random_dependency.service
Wants=random_dependency.service

[Service]
Type=simple
Environment=CATKIN_DIR={% if ansible_os_family == "Debian" %}/home/catkin_ws{% else %}/home/root/catkin_ws{% endif %}

User=non_root
ExecStartPre=/bin/bash -c 'echo "800000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq'
ExecStartPre=/bin/bash -c 'echo "running command"'
ExecStartPre=/bin/bash -c '/usr/sbin/randomcommand -check'
ExecStart=/bin/bash -c -l '{% if ansible_os_family == "Debian" %}source /opt/ros/{{ ros_codename }}/setup.bash; {% else %}{% endif %}source ${CATKIN_DIR}/devel/setup.bash; /opt/ros/{{ ros_codename }}/bin/roslaunch launch_dir launch_file.launch hostname:="{{ ansible_nodename }}"'
Restart=always
RestartSec=30

[Install]
WantedBy=multi-user.target