title: Ansible code to restart Apache
body: <p>I have a basic playbook to restart an Apache server but I'm wondering how the following command is interpreted and converted to its equivalent -- <code>service httpd start</code>.</p>
  
  <pre><code>- name: ensure apache is running
      service:
        name: httpd
        state: started
  </code></pre>