Skip to content

Instantly share code, notes, and snippets.

@soulaway
Created January 23, 2018 14:54
Show Gist options
  • Save soulaway/5845516cbcd2a95cd5f7f9669a94b084 to your computer and use it in GitHub Desktop.
Save soulaway/5845516cbcd2a95cd5f7f9669a94b084 to your computer and use it in GitHub Desktop.
soul-winlinx-host@birdwinhost:~/.ssh$ ssh staging-wallet-api.waterfall.com
Last login: Mon Jan 22 16:24:34 2018 from 10.110.0.65
__| __|_ )
_| ( / Amazon Linux AMI
___|\___|___|
https://aws.amazon.com/amazon-linux-ami/2017.09-release-notes/
5 package(s) needed for security, out of 9 available
Run "sudo yum update" to apply all updates.
[waterfall@aws-stg-wf-wallet-02 ~]$ exit
logout
Connection to staging-wallet-api.waterfall.com closed.
soul-winlinx-host@birdwinhost:~/.ssh$ cd /mnt/d/waterfall/apps/wallet-ansible
soul-winlinx-host@birdwinhost:/mnt/d/waterfall/apps/wallet-ansible$ ansible-playbook -i inventory/stage playbooks/services/wallet-proxy.yml
[DEPRECATION WARNING]: [defaults]hostfile option, The key is misleading as it can also be a list of hosts, a directory or a list of paths . This feature will
be removed in version 2.8. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
[DEPRECATION WARNING]: The use of 'include' for tasks has been deprecated. Use 'import_tasks' for static inclusions or 'include_tasks' for dynamic inclusions.
This feature will be removed in a future release. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
[DEPRECATION WARNING]: include is kept for backwards compatibility but usage is discouraged. The module documentation details page may explain more about this
rationale.. This feature will be removed in a future release. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
PLAY [wallet-passes] *******************************************************************************************************************************************
TASK [Gathering Facts] *****************************************************************************************************************************************ok: [staging-wallet-api.waterfall.com]
TASK [wallet-apps/common : Verify MODULE_NAME is set] **********************************************************************************************************skipping: [staging-wallet-api.waterfall.com]
TASK [wallet-apps/common : Verify SERVICE_NAME is set] *********************************************************************************************************skipping: [staging-wallet-api.waterfall.com]
TASK [wallet-apps/common : Verify BRANCH_NAME is set] **********************************************************************************************************skipping: [staging-wallet-api.waterfall.com]
TASK [wallet-apps/common : Verify MODULE_INSTALL_DIR is set] ***************************************************************************************************skipping: [staging-wallet-api.waterfall.com]
TASK [wallet-apps/common : Create /opt/production] *************************************************************************************************************ok: [staging-wallet-api.waterfall.com]
TASK [wallet-apps/common : Create module app directory] ********************************************************************************************************ok: [staging-wallet-api.waterfall.com]
TASK [wallet-apps/common : Reset 'target_version and install_from_s3' since facts are cached during a run] *****************************************************ok: [staging-wallet-api.waterfall.com]
TASK [wallet-apps/common : Check if explicit BUILD_VERSION is specified] ***************************************************************************************skipping: [staging-wallet-api.waterfall.com]
TASK [wallet-apps/common : Setup directory to store downloaded module archives used for installation] **********************************************************ok: [staging-wallet-api.waterfall.com]
TASK [wallet-apps/common : Delete any previous tmp LATEST_BUILD file before checking current value] ************************************************************ok: [staging-wallet-api.waterfall.com]
TASK [wallet-apps/common : Check current LATEST_BUILD value] ***************************************************************************************************changed: [staging-wallet-api.waterfall.com]
TASK [wallet-apps/common : Read LATEST_BUILD into variable] ****************************************************************************************************changed: [staging-wallet-api.waterfall.com]
TASK [wallet-apps/common : Display LATEST_BUILD if setup for BUILD_USE_LATEST] *********************************************************************************ok: [staging-wallet-api.waterfall.com] => {
"msg": "LATEST_BUILD for 'develop' => wallet-proxy-1.1.0-SNAPSHOT-r231.tgz"
}
TASK [wallet-apps/common : Delete local temp LATEST_BUILD file] ************************************************************************************************changed: [staging-wallet-api.waterfall.com]
TASK [wallet-apps/common : Set target_version value from S3] ***************************************************************************************************ok: [staging-wallet-api.waterfall.com]
TASK [wallet-apps/common : Upload module archive] **************************************************************************************************************skipping: [staging-wallet-api.waterfall.com]
TASK [wallet-apps/common : Set target_version value from S3] ***************************************************************************************************skipping: [staging-wallet-api.waterfall.com]
TASK [wallet-apps/common : Verify target_version is set] *******************************************************************************************************skipping: [staging-wallet-api.waterfall.com]
TASK [wallet-apps/common : Display information for current module installation] ********************************************************************************ok: [staging-wallet-api.waterfall.com] => {
"msg": "wallet-proxy => installing 'wallet-proxy-1.1.0-SNAPSHOT-r231.tgz'"
}
TASK [wallet-apps/common : Check if the binary for target_version of the module is already downloaded] *********************************************************ok: [staging-wallet-api.waterfall.com]
TASK [wallet-apps/common : Status of module archive download] **************************************************************************************************ok: [staging-wallet-api.waterfall.com] => {
"msg": "Archive '/opt/production/wallet-proxy/releases/wallet-proxy-1.1.0-SNAPSHOT-r231.tgz' already downloaded => False"
}
TASK [wallet-apps/common : Delete existing already downloaded archive (update == true)] ************************************************************************skipping: [staging-wallet-api.waterfall.com]
TASK [wallet-apps/common : Store in 'new_module_download' whether we need to download the archive] *************************************************************ok: [staging-wallet-api.waterfall.com]
TASK [wallet-apps/common : Download module archive from S3] ****************************************************************************************************changed: [staging-wallet-api.waterfall.com]
TASK [wallet-apps/common : set appropriate install dir path] ***************************************************************************************************ok: [staging-wallet-api.waterfall.com]
TASK [wallet-apps/common : Delete existing installed modules that will be replaced] ****************************************************************************ok: [staging-wallet-api.waterfall.com]
TASK [wallet-apps/common : Extract module archive] ************************************************************************************************************* [WARNING]: Consider using unarchive module rather than running tar
changed: [staging-wallet-api.waterfall.com]
TASK [wallet-apps/common : Ensure httplib2 is installed] *******************************************************************************************************fatal: [staging-wallet-api.waterfall.com -> localhost]: FAILED! => {"changed": false, "module_stderr": "sudo: требуется пароль\n", "module_stdout": "", "msg": "MODULE FAILURE", "rc": 1}
to retry, use: --limit @/mnt/d/waterfall/apps/wallet-ansible/playbooks/services/wallet-proxy.retry
PLAY RECAP *****************************************************************************************************************************************************staging-wallet-api.waterfall.com : ok=19 changed=5 unreachable=0 failed=1
soul-winlinx-host@birdwinhost:/mnt/d/waterfall/apps/wallet-ansible$ sudo ansible-playbook -i inventory/stage playbooks/services/wallet-proxy.yml
[sudo] пароль для soul-winlinx-host:
[DEPRECATION WARNING]: [defaults]hostfile option, The key is misleading as it can also be a list of hosts, a directory or a list of paths . This feature will
be removed in version 2.8. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
[DEPRECATION WARNING]: The use of 'include' for tasks has been deprecated. Use 'import_tasks' for static inclusions or 'include_tasks' for dynamic inclusions.
This feature will be removed in a future release. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
[DEPRECATION WARNING]: include is kept for backwards compatibility but usage is discouraged. The module documentation details page may explain more about this
rationale.. This feature will be removed in a future release. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
PLAY [wallet-passes] *******************************************************************************************************************************************
TASK [Gathering Facts] *****************************************************************************************************************************************fatal: [staging-wallet-api.waterfall.com]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: ssh: connect to host staging-wallet-api.waterfall.com port 22: Connection refused\r\n", "unreachable": true}
to retry, use: --limit @/mnt/d/waterfall/apps/wallet-ansible/playbooks/services/wallet-proxy.retry
PLAY RECAP *****************************************************************************************************************************************************staging-wallet-api.waterfall.com : ok=0 changed=0 unreachable=1 failed=0
soul-winlinx-host@birdwinhost:/mnt/d/waterfall/apps/wallet-ansible$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment