Skip to content

Instantly share code, notes, and snippets.

@elibroftw
Created March 27, 2026 04:10
Show Gist options
  • Select an option

  • Save elibroftw/165d63a8c3be52ce2e58b89751d058c1 to your computer and use it in GitHub Desktop.

Select an option

Save elibroftw/165d63a8c3be52ce2e58b89751d058c1 to your computer and use it in GitHub Desktop.
How to Install Caddy on Almalinux via Ansible Playback
- name: NAME
hosts: HOSTS
become: yes
tasks:
- name: Install copr
ansible.builtin.dnf:
name:
- 'dnf-command(copr)'
- 'dnf-plugins-core'
state: present
- name: dnf copr enable caddy
ansible.builtin.command: "dnf -y copr enable --assumeyes @caddy/caddy"
args:
creates: /etc/yum.repos.d/_copr:copr.fedorainfracloud.org:group_caddy:caddy.repo
notify: Reload Caddy
- name: Install caddy
ansible.builtin.dnf:
name: caddy
state: present
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment