client-pull-installation/roles/domain/tasks/sslproxy.yml

28 lines
769 B
YAML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
# Adjusting system for domain proxy certificate
- name: Creating needed directories
file:
path: '{{ item }}'
mode: 0755
state: directory
with_items:
- /usr/lib/firefox/browser/defaults/profile
- /usr/local/share/ca-certificates/{{ domainfull }}
- name: Getting SSL transparent proxy certificate
get_url:
url: 'http://{{ serverfqdn }}/proxy.crt'
dest: /usr/local/share/ca-certificates/{{ domainfull }}/ca.crt
register: proxycrt_dwnl
- name: Adding certificate sto the ones used by the system
shell: update-ca-certificates
when: proxycrt_dwnl|changed
sudo: yes
- name: Firefox settings to include certificate
get_url:
url: 'http://{{ serverfqdn }}/ks/cert8.db'
dest: /usr/lib/firefox/browser/defaults/profile