geerlingguy.clamav
Ansible ロール: ClamAV
RedHat/CentOS および Debian/Ubuntu Linux サーバーに ClamAV をインストールします。
要件
なし。
ロール変数
使用可能な変数は以下にリストされています。デフォルト値も示しています(defaults/main.yml
を参照):
clamav_packages:
- clamav
- clamav-base
- clamav-daemon
(Debian/Ubuntu のデフォルトを表示)。ClamAV 操作に必要なパッケージのリストです。
clamav_daemon_localsocket: /var/run/clamav/clamd.ctl
clamav_daemon_config_path: /etc/clamav/clamd.conf
clamav_freshclam_daemon_config_path: /etc/clamav/freshclam.conf
ClamAV デーモンのパス設定です。これらは各 OS ファミリー(Debian と Red Hat)のために特別にハードコードされており、上書きすることはできません。
clamav_daemon_configuration_changes:
- regexp: '^.*Example$'
state: absent
- regexp: '^.*LocalSocket .*$'
line: 'LocalSocket {{ clamav_daemon_localsocket }}'
ClamAV が起動時に読み込む設定ファイルに対して行う変更です。「Example」行をコメントアウトし、LocalSocket(または TCPSocket
、デフォルトでは 3310
)を開く必要があります。
clamav_daemon_state: started
clamav_daemon_enabled: true
clamav-daemon
サービスが実行中か、システム起動時に有効かを制御します。
clamav_freshclam_configuration_changes:
- regexp: '^.*HTTPProxyServer .*$'
line: 'HTTPProxyServer {{ clamav_freshclam_http_proxy_server }}'
- regexp: '^.*HTTPProxyPort .*$'
line: 'HTTPProxyPort {{ clamav_freshclam_http_proxy_port }}'
freshclam 起動時に読み込まれる設定ファイルに対して行う変更です。HTTP プロキシサーバー設定がある場合は、ここに追加する必要があります。
clamav_freshclam_daemon_state: started
clamav_freshclam_daemon_enabled: true
clamav-freshclam
サービスが実行中か、システム起動時に有効かを制御します。
依存関係
なし。
例プレイブック
- hosts: servers
become: true
roles:
- geerlingguy.clamav
ライセンス
MIT / BSD
作者情報
このロールは 2017 年に Jeff Geerling によって作成されました。彼は Ansible for DevOps の著者です。
プロジェクトについて
ClamAV installation and configuration.
インストール
ansible-galaxy install geerlingguy.clamav
ライセンス
mit
ダウンロード
467k
所有者
Father, author, developer, maker. Sometimes called "an inflammatory enigma". #stl #drupal #ansible #k8s #raspberrypi #crohns