You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following tasks should be moved to the tasks/pipeline-environment.yml file:
# check if ClamAV is running with file or tcp socket
- name: "Check if ClamAV is running with file or tcp socket"
shell: cat /etc/clamav/clamd.conf /etc/clamd.conf 2> /dev/null | grep -Eq "^LocalSocket\ "
register: clamavlocalsocket
check_mode: no
failed_when: clamavlocalsocket.rc > 1
changed_when: false
when: "not archivematica_src_mcpclient_clamav_use_tcp|bool"
- set_fact:
clamav_uses_file_socket: true
when: clamavlocalsocket.rc is defined and clamavlocalsocket.rc == 0
When running the role with
archivematica_src_install_am=no
, theCLAMAV_SOCKET_TYPE
is set to tcp because the below task file is skipped:https://github.com/artefactual-labs/ansible-archivematica-src/blob/qa/1.x/tasks/pipeline-osconf.yml#L59-L70
When
clamav_uses_file_socket
is not defined, the tcp socket is used because:https://github.com/artefactual-labs/ansible-archivematica-src/blob/qa/1.x/templates/etc/sysconfig/archivematica-mcp-client.j2#L13-L15
The text was updated successfully, but these errors were encountered: