Execution
Date 06 Aug 2024 14:17:07 +0100
Duration 00:00:25.11
Controller ssh-gw-4.layershift.com
User root
Versions
Ansible 2.16.4
ara 1.7.1 / 1.7.1
Python 3.10.10
Summary
134 Hosts
1 Tasks
134 Results
1 Plays
1 Files
0 Records

Task result details


Field Value
changed
True
cmd
cat /root/.bashrc
delta
0:00:00.006119
end
2024-08-06 14:17:13.664338
invocation
{
    "module_args": {
        "_raw_params": "cat /root/.bashrc",
        "_uses_shell": true,
        "argv": null,
        "chdir": null,
        "creates": null,
        "executable": null,
        "expand_argument_vars": true,
        "removes": null,
        "stdin": null,
        "stdin_add_newline": true,
        "strip_empty_ends": true
    }
}
msg

rc
0
start
2024-08-06 14:17:13.658219
stderr

stderr_lines
[]
stdout
# .bashrc
# User specific aliases and functions

#export PATH=$PATH:/usr/local/bin:/usr/local/sbin:$HOME/.cargo/bin:/usr/local/go/bin:/root/go/bin

declare -x TERM="xterm"

export HOME=/root
# Layershift custom variables
export HISTFILESIZE=200000
export HISTSIZE=200000
export HISTTIMEFORMAT="[%F %T] "
export HISTFILE=~/.bash_eternal_history
PROMPT_COMMAND="history -a; $PROMPT_COMMAND"
#
# End Layershift
#alias sk='sh /opt/ls_tools/one_line/SwissKnife.sh'
#alias git_layershift_tool='sh /root/operations/git_tool.sh'
#alias rm='rm -i'
#alias cp='cp -i'
#alias mv='mv -i'



# Source global definitions
if [ -f /etc/bashrc ]; then
        . /etc/bashrc
fi


export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion

# Pyenv environment variables
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"# Pyenv initialization
if command -v pyenv 1>/dev/null 2>&1; then
  eval "$(pyenv init --path)"
fi
# User specific environment and startup programs

PATH=$PATH:$HOME/bin

GOPATH=/usr/local/go

export PATH=$PATH:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/local/sbin:$HOME/.cargo/bin:/usr/local/go/bin:/root/go/bin

export PS1="\[\033[0;33m\][\!]\`if [[ \$? = "0" ]]; then echo "\\[\\033[32m\\]"; else echo "\\[\\033[31m\\]"; fi\`[\u.\h: \`if [[ `pwd` > 18 ]]; then echo "\\W"; else echo "\\w"; fi\`]\$\[\033[0m\] "; echo -ne "\033]0;`hostname -s`:`pwd`\007"
#jelastic version
#export PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w $\[\033[00m\] '

#Function to add all files/folders under current folder, commit with argument message and push it to remote
function lazygit()
{
  if [ -z "$1" ]
  then
    echo -e "\nNo argument was passed.\nExample: lazygit \"commit message\""
  else
    git add -A .
    git commit -m "$1"
    git push
  fi
}

export PATH="$HOME/.cargo/bin:$PATH"
upper() {
    # Usage: upper "string"
    printf '%s\n' "${1^^}"
}
export PATH="$PATH":/opt/ls_tools
stdout_lines
[
    "# .bashrc",
    "# User specific aliases and functions",
    "",
    "#export PATH=$PATH:/usr/local/bin:/usr/local/sbin:$HOME/.cargo/bin:/usr/local/go/bin:/root/go/bin",
    "",
    "declare -x TERM=\"xterm\"",
    "",
    "export HOME=/root",
    "# Layershift custom variables",
    "export HISTFILESIZE=200000",
    "export HISTSIZE=200000",
    "export HISTTIMEFORMAT=\"[%F %T] \"",
    "export HISTFILE=~/.bash_eternal_history",
    "PROMPT_COMMAND=\"history -a; $PROMPT_COMMAND\"",
    "#",
    "# End Layershift",
    "#alias sk='sh /opt/ls_tools/one_line/SwissKnife.sh'",
    "#alias git_layershift_tool='sh /root/operations/git_tool.sh'",
    "#alias rm='rm -i'",
    "#alias cp='cp -i'",
    "#alias mv='mv -i'",
    "",
    "",
    "",
    "# Source global definitions",
    "if [ -f /etc/bashrc ]; then",
    "        . /etc/bashrc",
    "fi",
    "",
    "",
    "export NVM_DIR=\"$HOME/.nvm\"",
    "[ -s \"$NVM_DIR/nvm.sh\" ] && \\. \"$NVM_DIR/nvm.sh\"  # This loads nvm",
    "[ -s \"$NVM_DIR/bash_completion\" ] && \\. \"$NVM_DIR/bash_completion\"  # This loads nvm bash_completion",
    "",
    "# Pyenv environment variables",
    "export PYENV_ROOT=\"$HOME/.pyenv\"",
    "export PATH=\"$PYENV_ROOT/bin:$PATH\"# Pyenv initialization",
    "if command -v pyenv 1>/dev/null 2>&1; then",
    "  eval \"$(pyenv init --path)\"",
    "fi",
    "# User specific environment and startup programs",
    "",
    "PATH=$PATH:$HOME/bin",
    "",
    "GOPATH=/usr/local/go",
    "",
    "export PATH=$PATH:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/local/sbin:$HOME/.cargo/bin:/usr/local/go/bin:/root/go/bin",
    "",
    "export PS1=\"\\[\\033[0;33m\\][\\!]\\`if [[ \\$? = \"0\" ]]; then echo \"\\\\[\\\\033[32m\\\\]\"; else echo \"\\\\[\\\\033[31m\\\\]\"; fi\\`[\\u.\\h: \\`if [[ `pwd` > 18 ]]; then echo \"\\\\W\"; else echo \"\\\\w\"; fi\\`]\\$\\[\\033[0m\\] \"; echo -ne \"\\033]0;`hostname -s`:`pwd`\\007\"",
    "#jelastic version",
    "#export PS1='\\[\\033[01;32m\\]\\u@\\h\\[\\033[01;34m\\] \\w $\\[\\033[00m\\] '",
    "",
    "#Function to add all files/folders under current folder, commit with argument message and push it to remote",
    "function lazygit()",
    "{",
    "  if [ -z \"$1\" ]",
    "  then",
    "    echo -e \"\\nNo argument was passed.\\nExample: lazygit \\\"commit message\\\"\"",
    "  else",
    "    git add -A .",
    "    git commit -m \"$1\"",
    "    git push",
    "  fi",
    "}",
    "",
    "export PATH=\"$HOME/.cargo/bin:$PATH\"",
    "upper() {",
    "    # Usage: upper \"string\"",
    "    printf '%s\\n' \"${1^^}\"",
    "}",
    "export PATH=\"$PATH\":/opt/ls_tools"
]