# service module with systemd and support for arguments parameter

**URL:** <https://forum.ansible.com/t/service-module-with-systemd-and-support-for-arguments-parameter/26086>\
**Category:** Ansible Project\
**Created:** [November 21, 2017, 12:13am UTC](https://forum.ansible.com/t/service-module-with-systemd-and-support-for-arguments-parameter/26086 "2017-11-21T00:13:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Darren\_S](https://avatars.discourse-cdn.com/v4/letter/d/59ef9b/32.png) [@Darren\_S](https://forum.ansible.com/u/Darren_S)\
**Post date:** [November 21, 2017, 12:13am UTC](https://forum.ansible.com/t/service-module-with-systemd-and-support-for-arguments-parameter/26086/1 "2017-11-21T00:13:34Z")

</div>

$ ansible --version  
ansible 2.3.1.0  
&nbsp;&nbsp;config file = /etc/ansible/ansible.cfg  
&nbsp;&nbsp;configured module search path = Default w/o overrides  
&nbsp;&nbsp;python version = 2.7.14 (default, Oct 2 2017, 09:52:26) [GCC 4.2.1  
Compatible OpenBSD Clang 4.0.0 (tags/RELEASE\_400/final)]

I'm working on a role to manage NTP client setup on target hosts and  
am confused about how to handle something. On recent Debian Linux  
hosts, systemd is the service manager. I want to run the OpenNTPD  
daemon with the "-s" argument, so in the task I add it in the  
arguments parameter as shown below:

- name: enable ntp service  
&nbsp;&nbsp;service:  
&nbsp;&nbsp;&nbsp;&nbsp;name: '{{ ntpd\_service\_name }}'  
&nbsp;&nbsp;&nbsp;&nbsp;enabled: '{{ ntpd\_service\_enabled }}'  
&nbsp;&nbsp;&nbsp;&nbsp;state: '{{ ntpd\_service\_state }}'  
&nbsp;&nbsp;&nbsp;&nbsp;arguments: '{% if ntpd\_step\_time %}-s{%endif %}'  
&nbsp;&nbsp;&nbsp;&nbsp;use: '{{ ntpd\_service\_mgr }}'  
&nbsp;&nbsp;tags: [ntp]

When the task runs it notes that systemd does not use the arguments parameter:

TASK [ntp\_client : enable ntp service]
