diff --git a/roles/video_reserves/tasks/main.yml b/roles/video_reserves/tasks/main.yml index 548146ca57..2c57986c6a 100644 --- a/roles/video_reserves/tasks/main.yml +++ b/roles/video_reserves/tasks/main.yml @@ -1,5 +1,5 @@ --- -- name: video_reserves | install apache php modules +- name: Video_reserves | install apache php modules ansible.builtin.apt: name: "{{ item }}" state: present @@ -7,19 +7,19 @@ 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" @@ -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/" @@ -38,7 +38,7 @@ - "{{ 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/" @@ -46,21 +46,21 @@ 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