Files
fedora-infra_ansible/roles/httpd/certificate/tasks/main.yml
Patrick Uiterwijk 08568865fe Replace all restart httpd with reload httpd
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2015-11-04 23:40:01 +00:00

52 lines
1.0 KiB
YAML

# Expected vars
# - name...
# - SSLCertificateChainFile:
# - cert:
# - key:
- name: Copy over SSLCertificateChainFile if defined
copy: >
src={{private}}/files/httpd/{{SSLCertificateChainFile}}
dest=/etc/pki/tls/certs/{{SSLCertificateChainFile}}
owner=root
group=root
mode=0644
when: SSLCertificateChainFile is defined
notify:
- reload httpd
tags:
- httpd
- httpd/certificate
- name: Copy {{name}}.cert
copy: >
src={{item}}
dest=/etc/pki/tls/certs/{{item | basename}}
owner=root
group=root
mode=0644
with_first_found:
- "{{private}}/files/httpd/{{cert}}.cert"
- "{{private}}/files/httpd/{{name}}.cert"
notify:
- reload httpd
tags:
- httpd
- httpd/certificate
- name: Copy {{name}}.key
copy: >
src={{item}}
dest=/etc/pki/tls/private/{{item | basename}}
owner=root
group=root
mode=0600
with_first_found:
- "{{private}}/files/httpd/{{key}}.key"
- "{{private}}/files/httpd/{{name}}.key"
notify:
- reload httpd
tags:
- httpd
- httpd/certificate