Skip to content
Snippets Groups Projects
Commit 8b4af383 authored by nimrod's avatar nimrod
Browse files

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

This reverts commit 2d5ca118.

The service shouldn't be running, only during startup and shutdown.
Reverted changes and removed test.
parent 2d5ca118
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,11 +24,3 @@
owner: root
group: root
mode: 0o0644
notify:
- Restart unattended-upgrades
- name: Enable service
service:
name: unattended-upgrades
state: started
enabled: yes
......@@ -3,11 +3,6 @@ from testinfra.utils.ansible_runner import AnsibleRunner
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):
assert Package('unattended-upgrades').is_installed
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment