Skip to content

Instantly share code, notes, and snippets.

View ekbfh's full-sized avatar

ekbfh

  • Russia, Saint-Petersburg
View GitHub Profile
- name: "Disable timers for unattended upgrade"
raw: "systemctl disable --now {{ item }}"
loop:
- 'apt-daily.timer'
- 'apt-daily-upgrade.timer'
changed_when: false
when: ansible_connection != 'docker'
- name: "Reload systemctl daemon to apply the new changes"
raw: "systemctl daemon-reload"