Skip to content

Commit

Permalink
fix(caddy_server): fix install on existing systems (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxhoesel committed May 20, 2022
1 parent 86e11be commit dff1cbe
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions roles/caddy_server/tasks/install_debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
ansible.builtin.apt_key:
id: 65760C51EDEA2017CEA2CA15155B6D79CA56EA34
state: absent
register: old_install_present

- name: Temporarily remove caddy repository to cleanup old key install method # noqa no-handler
ansible.builtin.file:
path: /etc/apt/sources.list.d/caddy-stable.list
state: absent
when: old_install_present.changed

- name: Requirements are installed
ansible.builtin.package:
Expand Down

0 comments on commit dff1cbe

Please sign in to comment.