Skip to content

Commit

Permalink
Separate timer and services systemctl commands
Browse files Browse the repository at this point in the history
  • Loading branch information
emkll committed Feb 3, 2021
1 parent 50dac25 commit e6038ba
Showing 1 changed file with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,28 @@
- apt
- unattended-upgrades

- name: Ensure apt-daily and apt-daily-upgrade services and timers are unmasked, started, and enabled.
- name: Ensure apt-daily and apt-daily-upgrade services are unmasked, started and enabled.
systemd:
name: "{{ item }}"
state: started
enabled: yes
masked: no
with_items:
- 'apt-daily'
- 'apt-daily.timer'
- 'apt-daily-upgrade'
tags:
- apt
- unattended-upgrades

- name: Ensure apt-daily and apt-daily-upgrade timers are started, and enabled.
systemd:
name: "{{ item }}"
state: started
enabled: yes
with_items:
- 'apt-daily.timer'
- 'apt-daily-upgrade.timer'
tags:
- apt
- unattended-upgrades

0 comments on commit e6038ba

Please sign in to comment.