title: How to fix the ansible playbook error "Unsupported parameters for (systemd) module: enable Supported parameters?
body: <p>I am trying to install Apache 2, PHP on Ubuntu machine using the ansible-playbook.
  I am getting the following error 
  <a href="https://i.stack.imgur.com/7fNyV.jpg" rel="nofollow noreferrer">Error after executing playbook</a></p>
  
  <p>fatal: [18.220.215.181]: FAILED! => {"changed": false, "msg": "Unsupported parameters for (systemd) module: enable Supported parameters include: daemon_reexec, daemon_reload, enabled, force, masked, name, no_block, scope, state, user"}<code>The ansible playbook is as follows---
  - hosts: all
    become: yes
    tasks:
    - name: Chenking ping
      ping:
    - name: Update packages
      apt:
        name: apache2
        update_cache: yes
        state: present
    - name: restart apache2 server
      service:
        name: apache2
        enable: yes
        state: restarted
    - name: install php module
      apt:
        name: "{{ item }}"
        state: present
      with_items:
       - php
       - libapache2-mod-php5
       - php-mcrypt
       - php-mysql
    - name: restart apache2 afetr restart
      service:
        name: apache2
        enable: yes
        state: restarted
  </code></p>
  
  <p>`</p>