From cd3c454917d3928e51856ee34a275f213ed8c103 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Mon, 8 Aug 2016 14:48:33 +0200 Subject: [PATCH] Add a example with a non service unit (#4355) Since the documentation focus mostly on service units, a explicit example may help people realizing it can be used for socket and timer too. --- lib/ansible/modules/system/systemd.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/ansible/modules/system/systemd.py b/lib/ansible/modules/system/systemd.py index 53171a73a1..9538fd7834 100644 --- a/lib/ansible/modules/system/systemd.py +++ b/lib/ansible/modules/system/systemd.py @@ -77,6 +77,11 @@ EXAMPLES = ''' name: httpd enabled: yes masked: no +# Example action to enable a timer for dnf-automatic +- systemd: + name: dnf-automatic.timer + state: started + enabled: True ''' RETURN = '''