- name: Deploy chkrootkit on Debian family
hosts: chkrootkit_debian
become: true
tasks:
- name: Install chkrootkit
ansible.builtin.apt:
update_cache: true
name: chkrootkit
state: present
- name: Run chkrootkit scan
ansible.builtin.command: chkrootkit
changed_when: false
- name: Deploy chkrootkit on RHEL family
hosts: chkrootkit_rhel
become: true
tasks:
- name: Install chkrootkit
ansible.builtin.dnf:
name: chkrootkit
state: present
failed_when: false