From 252cab20ab941ea3c2ee7e954ef0e0d943f63b75 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Sat, 3 Mar 2018 09:36:55 +0800 Subject: basic: enable syslog of console.log --- roles/basic/tasks/main.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'roles/basic') 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 -- cgit v1.2.2