ansible-roles/packweb-apache/tasks/multiphp.yml
David Prevot fc692cf65b
All checks were successful
gitea/ansible-roles/pipeline/head This commit looks good
Allow more --check runs
Use “when: not ansible_check_mode” or “when <file>.stat.exists or not
ansible_check_mode” in order to provide a meaningful diff if possible.

This is an improvement from the previously reverted commit
1728eaee68.
2022-12-21 18:05:41 +01:00

36 lines
753 B
YAML

---
- name: Enable proxy_fcgi
apache2_module:
state: present
name: proxy_fcgi
notify: restart apache2
when: not ansible_check_mode
- include_role:
name: remount-usr
- name: Copy phpContainer script
copy:
src: phpContainer
dest: /usr/local/bin/phpContainer
mode: "0755"
# - name: Copy php shim to call phpContainer when the user is a web user
# copy:
# src: multiphp-shim
# dest: /usr/local/bin/php
# mode: "0755"
# - name: Modify bashrc skel file
# lineinfile:
# dest: /etc/skel/.bashrc
# line: "alias php='sudo /usr/local/bin/phpContainer'"
- name: Add multiphp sudoers file
copy:
src: multiphp-sudoers
dest: /etc/sudoers.d/multiphp
mode: "0600"
validate: "visudo -cf %s"