Skip to content

Instantly share code, notes, and snippets.

@ngschmidt
Created March 19, 2022 17:39
Show Gist options
  • Save ngschmidt/4f670ea39a0d822456cbc473ccaba558 to your computer and use it in GitHub Desktop.
Save ngschmidt/4f670ea39a0d822456cbc473ccaba558 to your computer and use it in GitHub Desktop.
Install Root CA Ansible Playbook (Debian)
---
- 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