diff --git a/tasks/main.yml b/tasks/main.yml index eeef01d..1765dc5 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -7,7 +7,7 @@ - name: Debian family configuration block: - name: Install required packages - package: + ansible.builtin.package: name: - apt-transport-https - gnupg @@ -15,12 +15,12 @@ update_cache: yes - name: add crowdsec apt key - apt_key: + ansible.builtin.apt_key: url: https://packagecloud.io/crowdsec/crowdsec/gpgkey state: present - name: add crowdsec repository - apt_repository: + aansible.builtin.pt_repository: repo: 'deb https://packagecloud.io/crowdsec/crowdsec/{{ ansible_distribution|lower }}/ {{ ansible_distribution_release|lower }} main' state: present update_cache: yes @@ -39,7 +39,7 @@ - https://packagecloud.io/crowdsec/crowdsec/gpgkey/crowdsec-crowdsec-B78D1222C9AD2D5D.pub.gpg - https://packagecloud.io/crowdsec/crowdsec/gpgkey/crowdsec-crowdsec-FED78314A2468CCF.pub.gpg - name: Add Official crowdsec's repo - yum_repository: + ansible.builtin.yum_repository: name: crowdsec_crowdsec description: crowdsec_crowdsec baseurl: https://packagecloud.io/crowdsec/crowdsec/el/$releasever/$basearch @@ -57,7 +57,7 @@ - ansible_os_family == "RedHat" - name: Install crowdsec - package: + ansible.builtin.package: name: - crowdsec state: present