Sophos packages are proprietary. This playbook stages prerequisites and installer location checks.
- name: Prepare Sophos deployment hosts
hosts: sophos_all
become: true
vars:
sophos_installer_path: /root/sophos-av.tgz
tasks:
- name: Install required tools
ansible.builtin.package:
name:
- tar
- gzip
- perl
state: present
- name: Ensure Sophos installer exists
ansible.builtin.stat:
path: "{{ sophos_installer_path }}"
register: sophos_installer
- name: Fail if installer missing
ansible.builtin.fail:
msg: "Provide proprietary Sophos installer at {{ sophos_installer_path }}"
when: not sophos_installer.stat.exists