- hosts: all
  tasks:
    - scan_packages:


- hosts: all
  vars:
    scan_use_checksum: false
    scan_use_recursive: false
  tasks:
    - scan_packages:
    - scan_files:
        path: '{{ scan_file_path }}'
        get_checksum: '{{ scan_use_checksum }}'
        recursive: '{{ scan_use_recursive }}'
      when: scan_file_path is defined
Update playbook to pass conditional constraints for file scanning
Update playbook to pass conditional constraints for file scanning
