Skip to content

Commit

Permalink
Add ansible role for updating kali cert
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Boenninghausen committed Oct 21, 2024
1 parent 9aafae9 commit d5f4865
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions provisioning/ansible/attacker_playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@


roles:
- kali_update_cert
- ntp_kali
- ftp
- external_mail_handler
Expand Down
20 changes: 20 additions & 0 deletions provisioning/ansible/roles/kali_update_cert/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---

- name: Download the Kali archive keyring package
get_url:
url: http://http.kali.org/kali/pool/main/k/kali-archive-keyring/kali-archive-keyring_2024.1_all.deb
dest: /tmp/kali-archive-keyring_2024.1_all.deb

- name: Install the Kali archive keyring package
ansible.builtin.shell: dpkg -i /tmp/kali-archive-keyring_2024.1_all.deb
become: yes

- name: Remove the downloaded keyring package
file:
path: /tmp/kali-archive-keyring_2024.1_all.deb
state: absent

- name: Update apt package list
apt:
update_cache: yes
become: yes

0 comments on commit d5f4865

Please sign in to comment.