--- - name: Update repositories community.general.apk: update_cache: true - name: Install ext packages community.general.apk: name: "{{ ext_pkgs }}" state: present when: not ansible_check_mode - name: Add php-fpm to boot ansible.builtin.service: name: "{{ phpfpm_init }}" runlevel: default enabled: True use: openrc when: not ansible_check_mode - name: Configure php-fpm lineinfile: dest: "{{ phpfpm_path}}/php-fpm.d/www.conf" regexp: "^{{ item.property | regex_escape() }} = " line: "{{ item.property }} = {{ item.value }}" with_items: - { property: 'user', value: 'nginx' } - { property: 'group', value: 'nginx' } notify: Restart php-fpm