aboutsummaryrefslogtreecommitdiffstats
path: root/roles/basic
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-03-03 09:36:55 +0800
committerAaron LI <aly@aaronly.me>2018-03-14 11:35:07 +0800
commit252cab20ab941ea3c2ee7e954ef0e0d943f63b75 (patch)
tree237d358a1ffce0fa7cc888d7b6186409143381a0 /roles/basic
parent9f78192e5b4bf1925dd1b2e7c155660bf9dfd34b (diff)
downloadansible-dfly-vps-252cab20ab941ea3c2ee7e954ef0e0d943f63b75.tar.bz2
basic: enable syslog of console.log
Diffstat (limited to 'roles/basic')
-rw-r--r--roles/basic/tasks/main.yml14
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