mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-13 16:09:45 +08:00
24 lines
864 B
YAML
24 lines
864 B
YAML
- name: ensure ssl related packages are installed
|
|
action: yum name={{ item }} state=latest
|
|
with_items:
|
|
- mod_ssl
|
|
|
|
- name: copy ssl key
|
|
copy: src={{ private }}/files/taskotron/certs/{{ inventory_hostname }}/{{ inventory_hostname }}.key dest=/etc/pki/tls/private/{{ inventory_hostname }}.key
|
|
|
|
- name: copy ssl cert
|
|
copy: src={{ private }}/files/taskotron/certs/{{ inventory_hostname }}/{{ inventory_hostname }}.crt dest=/etc/pki/tls/certs/{{ inventory_hostname }}.crt
|
|
|
|
- name: generate rhel httpd ssl config
|
|
template: src=ssl.conf.rhel.j2 dest=/etc/httpd/conf.d/ssl.conf owner=root group=root mode=0644
|
|
when: is_rhel is defined
|
|
notify:
|
|
- restart httpd
|
|
|
|
- name: generate fedora httpd ssl config
|
|
template: src=ssl.conf.j2 dest=/etc/httpd/conf.d/ssl.conf owner=root group=root mode=0644
|
|
when: is_fedora is defined
|
|
notify:
|
|
- restart httpd
|
|
|