Created
March 19, 2022 17:39
-
-
Save ngschmidt/4f670ea39a0d822456cbc473ccaba558 to your computer and use it in GitHub Desktop.
Install Root CA Ansible Playbook (Debian)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: debian_machines | |
tasks: | |
- name: "Ansible Self-Test!" | |
ping: | |
- name: "Update Apt!" | |
apt: | |
name: "*" | |
state: latest | |
update_cache: true | |
- name: "Copy Root CA!" | |
copy: | |
src: "engyak-root.pem" | |
dest: "/usr/local/share/ca-certificates/engyak-root.crt" | |
- name: "Install `ca-certificates` package!" | |
apt: | |
name: "ca-certificates" | |
state: latest | |
- name: "Install root CA!" | |
ansible.builtin.shell: | |
"/usr/sbin/update-ca-certificates" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment