2015-08-20 21:47:50 +00:00
|
|
|
|
---
|
2015-09-13 23:08:32 +00:00
|
|
|
|
# Adjusting system for domain proxy certificate
|
|
|
|
|
|
|
|
|
|
- name: Creating needed directories
|
2015-08-20 21:56:19 +00:00
|
|
|
|
file:
|
|
|
|
|
path: '{{ item }}'
|
|
|
|
|
mode: 0755
|
|
|
|
|
state: directory
|
|
|
|
|
with_items:
|
2015-09-13 23:15:51 +00:00
|
|
|
|
- '/usr/lib/firefox/browser/defaults/profile'
|
2015-09-20 23:29:34 +00:00
|
|
|
|
- '/usr/local/share/ca-certificates/{{ ansible_local.domain.domainfull }}'
|
2015-08-20 21:56:19 +00:00
|
|
|
|
|
2015-09-13 23:08:32 +00:00
|
|
|
|
- name: Getting SSL transparent proxy certificate
|
2015-08-20 21:47:50 +00:00
|
|
|
|
get_url:
|
2015-09-20 23:29:34 +00:00
|
|
|
|
url: 'http://{{ ansible_local.domain.serverfqdn }}/proxy.crt'
|
|
|
|
|
dest: '/usr/local/share/ca-certificates/{{ ansible_local.domain.domainfull }}/ca.crt'
|
2015-09-07 19:42:38 +00:00
|
|
|
|
register: proxycrt_dwnl
|
2015-08-20 21:47:50 +00:00
|
|
|
|
|
2016-02-17 22:19:48 +00:00
|
|
|
|
- name: Adding certificates to the ones used by the system
|
2015-08-20 21:47:50 +00:00
|
|
|
|
shell: update-ca-certificates
|
2015-09-07 19:42:38 +00:00
|
|
|
|
when: proxycrt_dwnl|changed
|
2016-01-12 21:23:52 +00:00
|
|
|
|
become: yes
|
2015-08-20 21:47:50 +00:00
|
|
|
|
|
2015-09-13 23:08:32 +00:00
|
|
|
|
- name: Firefox settings to include certificate
|
2015-08-20 21:47:50 +00:00
|
|
|
|
get_url:
|
2015-10-02 18:43:58 +00:00
|
|
|
|
url: 'http://{{ ansible_local.domain.serverfqdn }}/ks/server-ca/cert8.db'
|
2015-11-05 00:44:58 +00:00
|
|
|
|
dest: /usr/lib/firefox/browser/defaults/profile/cert8.db
|