Created
March 27, 2026 04:10
-
-
Save elibroftw/165d63a8c3be52ce2e58b89751d058c1 to your computer and use it in GitHub Desktop.
How to Install Caddy on Almalinux via Ansible Playback
This file contains hidden or 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
| - 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