Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[video reserves] Try to add php to mods-enabled #5456

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions roles/video_reserves/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
---
- name: video_reserves | install apache php modules
- name: Video_reserves | install apache php modules
ansible.builtin.apt:
name: "{{ item }}"
state: present
notify: restart apache2
loop:
- libapache2-mod-php{{ php_version }}

- name: video_reserves | create directories for shared files
- name: Video_reserves | create directories for shared files
ansible.builtin.file:
path: '{{ capistrano_base_dir }}/{{ item }}'
state: 'directory'
owner: '{{ deploy_user }}'
group: '{{ deploy_user }}'
mode: 0755
mode: "0755"
changed_when: false
with_items:
- '{{ capistrano_directory }}/shared/hrc'
- '{{ capistrano_directory }}/shared/hrc/admin'

- name: video_reserves | add config restrictions
- name: Video_reserves | add config restrictions
ansible.builtin.template:
src: config.tpl.j2
dest: "{{ apache_doc_root }}/shared/hrc/admin/config.php"
Expand All @@ -28,7 +28,7 @@
mode: '0640'
when: running_on_server

- name: video_reserves | copy apache cert files
- name: Video_reserves | copy apache cert files
ansible.builtin.copy:
src: "files/certs/{{ item }}"
dest: "/etc/apache2/ssl/certs/"
Expand All @@ -38,29 +38,29 @@
- "{{ inventory_hostname }}_cert.cer"
- "{{ inventory_hostname }}_chained.pem"

- name: video_reserves | copy apache private files
- name: Video_reserves | copy apache private files
ansible.builtin.copy:
src: "files/private/{{ item }}"
dest: "/etc/apache2/ssl/private/"
when: running_on_server
with_items:
- "{{ inventory_hostname }}_priv.key"

- name: video_reserves | Add video_reserves
- name: Video_reserves | Add video_reserves
ansible.builtin.template:
src: "apache2-site.conf.j2"
dest: "/etc/apache2/sites-available/000-video_reserves.conf"
mode: 0644
mode: "0644"
notify: restart apache
become: true

- name: video_reserves | enable apache2 sites
- name: Video_reserves | enable apache2 sites
ansible.builtin.command: "a2ensite 000-video_reserves.conf"
become: true
register: apache2_enabled
changed_when: '"Enabling site" in apache2_enabled.stdout'

- name: video_reserves | disable the default apache2 site
- name: Video_reserves | disable the default apache2 site
ansible.builtin.command: "a2dissite 000-default"
become: true
register: apache2_disable
Expand Down
Loading