瀏覽代碼

Update install_log2ram.yml

Updated Ansible playbook to configure notification settings in Log2Ram...

The playbook incorrectly referenced 'MAIL=' - this should instead be 'NOTIFICATION='

Added support for customizable notification commands - 'NOTIFICATION_COMMAND='
pull/225/head
Adam Matthews 5 月之前
committed by Adam Matthews
父節點
當前提交
a0b09672af
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. +4
    -2
      ansible_playbook/install_log2ram.yml

+ 4
- 2
ansible_playbook/install_log2ram.yml 查看文件

@@ -18,7 +18,8 @@

log2ram_size: 40M
log2ram_use_rsync: true
log2ram_mail: true
log2ram_notification: true
log2ram_notification_command: 'mail -s "Log2Ram Error on $HOSTNAME"'
log2ram_path_disk: /var/log
log2ram_use_z2lr: true
log2ram_comp_alg: lz4
@@ -62,7 +63,8 @@
loop:
- {regexp: '^SIZE=(.*)$', line: 'SIZE={{ log2ram_size }}'}
- {regexp: 'USE_RSYNC=(.*)$', line: 'USE_RSYNC={{ log2ram_use_rsync }}'}
- {regexp: '^MAIL=(.*)$', line: 'MAIL={{ log2ram_mail }}'}
- {regexp: '^NOTIFICATION=(.*)$', line: 'NOTIFICATION={{ log2ram_notification }}'}
- {regexp: '^NOTIFICATION_COMMAND=(.*)$', line: 'NOTIFICATION_COMMAND={{ log2ram_notification_command }}'}
- {regexp: '^PATH_DISK=(.*)$', line: 'PATH_DISK="{{ log2ram_path_disk }}"'}
- {regexp: '^ZL2R=(.*)$', line: 'ZL2R={{ log2ram_use_z2lr|lower }}'}
- {regexp: '^COMP_ALG=(.*)$', line: 'COMP_ALG={{ log2ram_comp_alg }}'}


Loading…
取消
儲存