--- - name: Install php-fpm and deps apt: name={{ item }} state=present with_items: - php - php-fpm - php-mysql notify: - restart php7.0-fpm