--- - name: Configure PHP ansible.builtin.import_tasks: phpfpm.yml tags: phpfpm - name: Install packages ansible.builtin.import_tasks: packages.yml tags: packages - name: Copy configuration ansible.builtin.template: src: pma.php.j2 dest: "/etc/phpmyadmin/conf.d/{{ inventory_hostname }}.php" mode: "0644" notify: - stop php-fpm-socket - stop php-fpm-service - start php-fpm-socket - start php-fpm-service