summaryrefslogtreecommitdiff
path: root/playbooks/ssl.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'playbooks/ssl.yaml')
-rw-r--r--playbooks/ssl.yaml17
1 files changed, 17 insertions, 0 deletions
diff --git a/playbooks/ssl.yaml b/playbooks/ssl.yaml
index 0f662ac..5670375 100644
--- a/playbooks/ssl.yaml
+++ b/playbooks/ssl.yaml
@@ -2,6 +2,23 @@
- name: "SSL cert"
hosts: target
tasks:
+ - name: "Install ca-certificates"
+ apt:
+ pkg: "{{ item }}"
+ state: present
+ with_items:
+ - ca-certificates
+ when: ansible_distribution == "Ubuntu"
+
+ - name: "Install ca-certificates"
+ portage:
+ package: "{{ item }}"
+ update: yes
+ changed_use: yes
+ with_items:
+ - app-misc/ca-certificates
+ when: ansible_distribution == "Gentoo"
+
- name: "Create self-signed SSL cert"
shell:
cmd: |