# problem with 'ansible all -m service -a "name=apache2 state=restarted" '

**URL:** <https://forum.ansible.com/t/problem-with-ansible-all-m-service-a-name-apache2-state-restarted/12906>\
**Category:** Ansible Project\
**Tags:** ansible-project\
**Created:** [June 4, 2013, 8:28pm UTC](https://forum.ansible.com/t/problem-with-ansible-all-m-service-a-name-apache2-state-restarted/12906 "2013-06-04T20:28:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [June 4, 2013, 8:28pm UTC](https://forum.ansible.com/t/problem-with-ansible-all-m-service-a-name-apache2-state-restarted/12906/1 "2013-06-04T20:28:06Z")

</div>

Sounds like you need to either login as root or use the sudo options.
