- name: install php, php-mysqlnd yum: name: - php - php-mysqlnd state: present update_cache: yes when: - ansible_os_family == "RedHat" notify: reload Apache - name: install php, php-mysqlnd apt: name: - php - php-mysqlnd state: present update_cache: yes when: - ansible_os_family == "Debian" notify: reload Apache - name: start php ; enable php service: name: php-fpm state: started enabled: yes