Роль для настройки сервера майнкрафт под Alpine Linux
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
707 B

---
- 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