github.com/weaveworks/common@v0.0.0-20230728070032-dd9e68f319d5/tools/config_management/roles/setup-apt/tasks/main.yml (about) 1 --- 2 # Set up apt 3 4 # Ubuntu runs an apt update process that will run on first boot from image. 5 # This is of questionable value when the machines are only going to live for a few minutes. 6 # If you leave them on they will run the process daily. 7 # Also we have seen the update process create a 'defunct' process which then throws off Weave Net smoke-test checks. 8 # So, we override the 'persistent' setting so it will still run at the scheduled time but will not try to catch up on first boot. 9 - name: copy apt daily override 10 copy: src=apt-daily.timer.conf dest=/etc/systemd/system/apt-daily.timer.d/