{"id":47033,"status":"changed","playbook":{"id":954,"items":{"plays":1,"tasks":1,"results":134,"hosts":134,"files":1,"records":0},"arguments":{"version":null,"verbosity":2,"become":false,"become_method":"sudo","become_user":null,"become_ask_pass":false,"become_password_file":null,"inventory":["/home/ssh-gateway/ansible/bash-kvm-inventory-prod.sh"],"listhosts":false,"subset":null,"poll_interval":15,"seconds":0,"one_line":false,"tree":null,"private_key_file":"/home/ssh-gateway/.ssh/id_rsa","remote_user":"root","connection":"ssh","timeout":null,"ssh_common_args":null,"sftp_extra_args":null,"scp_extra_args":null,"ssh_extra_args":null,"ask_pass":false,"connection_password_file":null,"check":false,"diff":false,"extra_vars":"Not saved by ARA as configured by 'ignored_arguments'","vault_ids":[],"ask_vault_pass":false,"vault_password_files":[],"forks":20,"module_path":null,"basedir":null,"task_timeout":0,"module_args":"cat /root/.bashrc","module_name":"shell","args":"all"},"labels":[{"id":1,"name":"remote_user:root"},{"id":2,"name":"check:False"}],"started":"2024-08-06T14:17:07.198303+01:00","ended":"2024-08-06T14:17:32.309931+01:00","duration":"00:00:25.111628","name":null,"ansible_version":"2.16.4","client_version":"1.7.1","python_version":"3.10.10","server_version":"1.7.1","status":"completed","path":"Ad-Hoc: shell: cat /root/.bashrc","controller":"ssh-gw-4.layershift.com","user":"root"},"play":{"id":953,"items":{"tasks":1,"results":134},"started":"2024-08-06T14:17:07.294739+01:00","ended":"2024-08-06T14:17:25.727883+01:00","duration":"00:00:18.433144","name":"Ansible Ad-Hoc","status":"completed"},"task":{"id":1386,"items":{"results":134},"path":"Ad-Hoc: shell: cat /root/.bashrc","tags":[],"started":"2024-08-06T14:17:07.609275+01:00","ended":"2024-08-06T14:17:25.716150+01:00","duration":"00:00:18.106875","name":"shell","uuid":"001851d0-75dc-54f9-a32e-00000000008a","action":"shell","lineno":1,"handler":false,"status":"completed","warnings":[],"deprecations":[],"exceptions":[],"file":955},"host":{"id":23141,"name":"versatile-chipmunk.man-1.vm.plesk-server.com","changed":1,"failed":0,"ok":1,"skipped":0,"unreachable":0},"delegated_to":[],"content":{"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\n# User specific aliases and functions\n\n#export PATH=$PATH:/usr/local/bin:/usr/local/sbin:$HOME/.cargo/bin:/usr/local/go/bin:/root/go/bin\n\ndeclare -x TERM=\"xterm\"\n\nexport HOME=/root\n# Layershift custom variables\nexport HISTFILESIZE=200000\nexport HISTSIZE=200000\nexport HISTTIMEFORMAT=\"[%F %T] \"\nexport HISTFILE=~/.bash_eternal_history\nPROMPT_COMMAND=\"history -a; $PROMPT_COMMAND\"\n#\n# End Layershift\n#alias sk='sh /opt/ls_tools/one_line/SwissKnife.sh'\n#alias git_layershift_tool='sh /root/operations/git_tool.sh'\n#alias rm='rm -i'\n#alias cp='cp -i'\n#alias mv='mv -i'\n\n\n\n# Source global definitions\nif [ -f /etc/bashrc ]; then\n        . /etc/bashrc\nfi\n\n\nexport NVM_DIR=\"$HOME/.nvm\"\n[ -s \"$NVM_DIR/nvm.sh\" ] && \\. \"$NVM_DIR/nvm.sh\"  # This loads nvm\n[ -s \"$NVM_DIR/bash_completion\" ] && \\. \"$NVM_DIR/bash_completion\"  # This loads nvm bash_completion\n\n# Pyenv environment variables\nexport PYENV_ROOT=\"$HOME/.pyenv\"\nexport PATH=\"$PYENV_ROOT/bin:$PATH\"# Pyenv initialization\nif command -v pyenv 1>/dev/null 2>&1; then\n  eval \"$(pyenv init --path)\"\nfi\n# User specific environment and startup programs\n\nPATH=$PATH:$HOME/bin\n\nGOPATH=/usr/local/go\n\nexport PATH=$PATH:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/local/sbin:$HOME/.cargo/bin:/usr/local/go/bin:/root/go/bin\n\nexport 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\"\n#jelastic version\n#export PS1='\\[\\033[01;32m\\]\\u@\\h\\[\\033[01;34m\\] \\w $\\[\\033[00m\\] '\n\n#Function to add all files/folders under current folder, commit with argument message and push it to remote\nfunction lazygit()\n{\n  if [ -z \"$1\" ]\n  then\n    echo -e \"\\nNo argument was passed.\\nExample: lazygit \\\"commit message\\\"\"\n  else\n    git add -A .\n    git commit -m \"$1\"\n    git push\n  fi\n}\n\nexport PATH=\"$HOME/.cargo/bin:$PATH\"\nupper() {\n    # Usage: upper \"string\"\n    printf '%s\\n' \"${1^^}\"\n}\nexport 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"]},"created":"2024-08-06T14:17:20.859857+01:00","updated":"2024-08-06T14:17:20.859878+01:00","started":"2024-08-06T14:17:13.026226+01:00","ended":"2024-08-06T14:17:20.803374+01:00","duration":"00:00:07.777148","changed":true,"ignore_errors":false}