diff --git a/roles/pagure/frontend/tasks/main.yml b/roles/pagure/frontend/tasks/main.yml index 655b9a46ed..d244b0bc24 100644 --- a/roles/pagure/frontend/tasks/main.yml +++ b/roles/pagure/frontend/tasks/main.yml @@ -139,6 +139,25 @@ - pagure - mirror +# We need the SSL certs early on + +- name: Install the SSL cert so that we can use https + copy: > + src={{ private}}/files/httpd/{{ item }} dest=/etc/pki/tls/certs/{{ item }} + owner=root group=root mode=0600 + notify: restart stunnel + with_items: + - pagure.io.cert + - pagure.io.key + - pagure.io.intermediate.cert + - docs.pagure.org.crt + - docs.pagure.org.intermediate.crt + - docs.pagure.org.key + tags: + - config + - pagure + - httpd/certificate + # Set-up postfix and the milter for postfix - name: Add the /etc/aliases file @@ -365,23 +384,6 @@ - web - pagure -- name: Install the SSL cert so that we can use https - copy: > - src={{ private}}/files/httpd/{{ item }} dest=/etc/pki/tls/certs/{{ item }} - owner=root group=root mode=0600 - notify: restart stunnel - with_items: - - pagure.io.cert - - pagure.io.key - - pagure.io.intermediate.cert - - docs.pagure.org.crt - - docs.pagure.org.intermediate.crt - - docs.pagure.org.key - tags: - - config - - pagure - - httpd/certificate - - name: Install the configuration file to activate https template: src={{ item }} dest=/etc/httpd/conf.d/{{ item }} owner=root group=root mode=0644