Skip to content
Snippets Groups Projects
Commit 2d5ca118 authored by nimrod's avatar nimrod
Browse files

- Better handling of unattended-upgrades service, added test.

parent 4443cbdc
No related branches found
No related tags found
No related merge requests found
---
# handlers file for unattended-upgrades
- name: Restart unattended-upgrades
service:
name: unattended-upgrades
state: restarted
......@@ -24,3 +24,11 @@
owner: root
group: root
mode: 0o0644
notify:
- Restart unattended-upgrades
- name: Enable service
service:
name: unattended-upgrades
state: started
enabled: yes
......@@ -5,6 +5,7 @@ testinfra_hosts = AnsibleRunner('.molecule/ansible_inventory').get_hosts('all')
def test_unattended_upgrades_service(Service):
assert Service('unattended-upgrades').is_enabled
assert Service('unattended-upgrades').is_running
def test_unattended_upgrades_package(Package):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment