diff --git a/roles/caddy_server/tasks/install_debian.yml b/roles/caddy_server/tasks/install_debian.yml index ca4e7ac..bd8b8dc 100644 --- a/roles/caddy_server/tasks/install_debian.yml +++ b/roles/caddy_server/tasks/install_debian.yml @@ -1,4 +1,9 @@ --- +- name: Old apt-key trusted key is absent + ansible.builtin.apt_key: + id: 65760C51EDEA2017CEA2CA15155B6D79CA56EA34 + state: absent + - name: Requirements are installed ansible.builtin.package: name: @@ -8,11 +13,6 @@ - "{{ 'python3-requests' if ansible_python_version is version('3', '>=') else 'python-requests' }}" update_cache: yes -- name: Old apt-key trusted key is absent - ansible.builtin.apt_key: - id: 65760C51EDEA2017CEA2CA15155B6D79CA56EA34 - state: absent - - name: APT Key is stored in keyring ansible.builtin.apt_key: url: https://dl.cloudsmith.io/public/caddy/stable/gpg.key