#1986 [mailman3] Playbook fixes
Merged 17 days ago by zlopez. Opened 17 days ago by zlopez.
fedora-infra/ zlopez/ansible mailman_update  into  main

file modified
+14 -4
@@ -346,8 +346,6 @@ 

    tags:

      - mailman

      - hyperkitty

-   when:

-     - static_root_dir is changed

  

  - name: Compress static files

    ansible.builtin.command:
@@ -358,8 +356,6 @@ 

    tags:

      - mailman

      - hyperkitty

-   when:

-     - static_root_dir is changed

  

  - name: Systemd unit to start postorius/hyperkitty through gunicorn

    ansible.builtin.template:
@@ -468,6 +464,17 @@ 

      - mailman

      - selinux

  

+ - name: Allow Apache to connect to localhost gunicorn

+   ansible.posix.seboolean:

+     name: httpd_can_network_connect

+     state: yes

+     persistent: yes

+   notify:

+     - restart apache

+   tags:

+     - mailman

+     - selinux

+ 

  - name: Set the SELinux policy for the static files directory

    community.general.sefcontext:

      target: "{{ mailman_webui_basedir }}/static(/.*)?"
@@ -486,6 +493,9 @@ 

    - mailman

    - selinux

  

+ - name: Apply SELinux changes

+   command: restorecon -irv "{{ mailman_webui_basedir}}"

+ 

  # Start services

  - name: Start services

    ansible.builtin.systemd:

@@ -286,6 +286,7 @@ 

  # django-compressor

  # https://pypi.python.org/pypi/django_compressor

  #

+ COMPRESS_ENABLED = True

  COMPRESS_PRECOMPILERS = (

     ('text/less', 'lessc {infile} {outfile}'),

     ('text/x-scss', 'sassc -t compressed {infile} {outfile}'),

no initial comment

Pull-Request has been merged by zlopez

17 days ago