From caabc5f89a23a225c0baf6137d7cc7a661c92131 Mon Sep 17 00:00:00 2001 From: Carlos Konstanski Date: Tue, 6 Feb 2018 07:33:16 -0700 Subject: Added installation of ca-certificates to ssl.yaml --- salt/openbook/ansible/files/ssl.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'salt/openbook') diff --git a/salt/openbook/ansible/files/ssl.yaml b/salt/openbook/ansible/files/ssl.yaml index 0f662ac..5670375 100644 --- a/salt/openbook/ansible/files/ssl.yaml +++ b/salt/openbook/ansible/files/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: | -- cgit v1.3