Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
uphrh-sb-devops
Commits
72cd7183
Commit
72cd7183
authored
5 years ago
by
Kartish
Browse files
Options
Download
Patches
Plain Diff
Issue #000 fix: logging commands with user and timestamp
parent
ad1291c3
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ansible/roles/bootstrap_any/tasks/main.yml
+1
-1
ansible/roles/bootstrap_any/tasks/main.yml
with
1 addition
and
1 deletion
+1
-1
ansible/roles/bootstrap_any/tasks/main.yml
+
1
−
1
View file @
72cd7183
...
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets