diff options
author | Aaron LI <aly@aaronly.me> | 2018-03-03 09:36:55 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2018-03-14 11:35:07 +0800 |
commit | 252cab20ab941ea3c2ee7e954ef0e0d943f63b75 (patch) | |
tree | 237d358a1ffce0fa7cc888d7b6186409143381a0 | |
parent | 9f78192e5b4bf1925dd1b2e7c155660bf9dfd34b (diff) | |
download | ansible-dfly-vps-252cab20ab941ea3c2ee7e954ef0e0d943f63b75.tar.bz2 |
basic: enable syslog of console.log
-rw-r--r-- | roles/basic/tasks/main.yml | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/roles/basic/tasks/main.yml b/roles/basic/tasks/main.yml index 498155b..078684b 100644 --- a/roles/basic/tasks/main.yml +++ b/roles/basic/tasks/main.yml @@ -21,10 +21,22 @@ hint.ehci.0.disabled=1 hint.ahci.disabled=1 +- name: syslog - enable console log file (1/2) + lineinfile: + path: /etc/syslog.conf + regexp: '^#?\s*console.info' + line: "console.info /var/log/console.log" + +- name: syslog - enable console log file (2/2) + file: + path: /var/log/console.log + state: touch + mode: 0600 + - name: pkg - disable repo auto update lineinfile: path: /usr/local/etc/pkg.conf - regexp: "^#?REPO_AUTOUPDATE" + regexp: '^#?REPO_AUTOUPDATE' line: "REPO_AUTOUPDATE = false;" - name: pkg - update repos |