暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

logwatch.yml 342B

12345
  1. - name: Install logwatch
  2. apt: pkg=logwatch state=installed
  3. - name: Configure logwatch to email {{ main_user_name }}@{{ domain }} daily
  4. action: lineinfile dest=/etc/cron.daily/00logwatch regexp="^/usr/sbin/logwatch" line="/usr/sbin/logwatch --output mail --mailto {{ main_user_name }}@{{ domain }} --detail high" state=present create=yes