Commit 72cd7183 authored by Kartish's avatar Kartish
Browse files

Issue #000 fix: logging commands with user and timestamp

parent ad1291c3
No related merge requests found
Showing with 1 addition and 1 deletion
+1 -1
......@@ -22,7 +22,7 @@
lineinfile:
path: /etc/bash.bashrc
insertafter: EOF
line: export PROMPT_COMMAND='RETRN_VAL=$?;logger -p local6.debug "$(whoami) [$$]: $(history 1 | sed "s/^[ ]*[0-9]\+[ ]*//" ) [$RETRN_VAL]"'
line: "export PROMPT_COMMAND='RETRN_VAL=$?;logger -p local6.debug \"$(whoami) [$$]: $(history 1 | sed "s/^[ ]*[0-9]\\+[ ]*//\" ) [$RETRN_VAL]\"'"
- name: system-wide BASH runtime config file
lineinfile:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment