Skip to content

Instantly share code, notes, and snippets.

@serg2801
Created May 13, 2019 19:22
Show Gist options
  • Save serg2801/1fc572c92af3eeee6026c3c77ab70d14 to your computer and use it in GitHub Desktop.
Save serg2801/1fc572c92af3eeee6026c3c77ab70d14 to your computer and use it in GitHub Desktop.
ansible-playbook
PLAY [Deplay the integration appliance.] *****************************************************************************************************************************************************************************************************
TASK [Gathering Facts] ***********************************************************************************************************************************************************************************************************************
ok: [160.1.4.4]
TASK [common : Install ntp] ******************************************************************************************************************************************************************************************************************
ok: [160.1.4.4]
TASK [common : Start the ntp service] ********************************************************************************************************************************************************************************************************
ok: [160.1.4.4]
TASK [common : Add integration_appliance user] ***********************************************************************************************************************************************************************************************
ok: [160.1.4.4]
TASK [common : Set ownership of private data directory] **************************************************************************************************************************************************************************************
ok: [160.1.4.4]
TASK [base : upgrade all packages] ***********************************************************************************************************************************************************************************************************
ok: [160.1.4.4]
TASK [base : Installing requirements for centos] *********************************************************************************************************************************************************************************************
ok: [160.1.4.4]
TASK [ruby : Remove system ruby] *************************************************************************************************************************************************************************************************************
ok: [160.1.4.4]
TASK [ruby : Install rvm ruby] ***************************************************************************************************************************************************************************************************************
TASK [rvm.ruby : Detect rvm binary] **********************************************************************************************************************************************************************************************************
ok: [160.1.4.4]
TASK [rvm.ruby : Detect rvm installer] *******************************************************************************************************************************************************************************************************
ok: [160.1.4.4]
TASK [rvm.ruby : Detect current rvm version] *************************************************************************************************************************************************************************************************
ok: [160.1.4.4]
TASK [rvm.ruby : Install rvm installer] ******************************************************************************************************************************************************************************************************
skipping: [160.1.4.4]
TASK [rvm.ruby : Import GPG keys from keyservers] ********************************************************************************************************************************************************************************************
ok: [160.1.4.4] => (item=hkp://pool.sks-keyservers.net)
skipping: [160.1.4.4] => (item=hkp://ipv4.pool.sks-keyservers.net)
skipping: [160.1.4.4] => (item=hkp://pgp.mit.edu)
skipping: [160.1.4.4] => (item=hkp://keyserver.pgp.com)
TASK [rvm.ruby : Was GPG import from keyservers succesfull?] *********************************************************************************************************************************************************************************
ok: [160.1.4.4] => (item={'_ansible_parsed': True, 'stderr_lines': [u'gpg: requesting key D39DC0E3 from hkp server pool.sks-keyservers.net', u'gpg: requesting key 39499BDB from hkp server pool.sks-keyservers.net', u'gpg: key D39DC0E3: "Michal Papis (RVM signing) <[email protected]>" not changed', u'gpg: key D39DC0E3: "Totally Legit Signing Key <[email protected]>" not changed', u'gpg: key 39499BDB: "Piotr Kuczynski <[email protected]>" not changed', u'gpg: Total number processed: 3', u'gpg: unchanged: 3'], '_ansible_item_result': True, u'end': u'2019-05-13 19:17:09.617810', '_ansible_no_log': False, u'stdout': u'', u'cmd': u'gpg --batch --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB', u'rc': 0, 'item': u'hkp://pool.sks-keyservers.net', u'delta': u'0:00:00.603850', u'stderr': u'gpg: requesting key D39DC0E3 from hkp server pool.sks-keyservers.net\ngpg: requesting key 39499BDB from hkp server pool.sks-keyservers.net\ngpg: key D39DC0E3: "Michal Papis (RVM signing) <[email protected]>" not changed\ngpg: key D39DC0E3: "Totally Legit Signing Key <[email protected]>" not changed\ngpg: key 39499BDB: "Piotr Kuczynski <[email protected]>" not changed\ngpg: Total number processed: 3\ngpg: unchanged: 3', u'changed': False, u'invocation': {u'module_args': {u'creates': None, u'executable': None, u'_uses_shell': True, u'_raw_params': u'gpg --batch --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB', u'removes': None, u'warn': True, u'chdir': None, u'stdin': None}}, 'stdout_lines': [], u'start': u'2019-05-13 19:17:09.013960', '_ansible_ignore_errors': True, 'failed': False})
skipping: [160.1.4.4] => (item={'skipped': True, '_ansible_no_log': False, 'skip_reason': u'Conditional result was False', '_ansible_item_result': True, 'item': u'hkp://ipv4.pool.sks-keyservers.net', 'changed': False, '_ansible_ignore_errors': True})
skipping: [160.1.4.4] => (item={'skipped': True, '_ansible_no_log': False, 'skip_reason': u'Conditional result was False', '_ansible_item_result': True, 'item': u'hkp://pgp.mit.edu', 'changed': False, '_ansible_ignore_errors': True})
skipping: [160.1.4.4] => (item={'skipped': True, '_ansible_no_log': False, 'skip_reason': u'Conditional result was False', '_ansible_item_result': True, 'item': u'hkp://keyserver.pgp.com', 'changed': False, '_ansible_ignore_errors': True})
TASK [rvm.ruby : Import GPG keys from rvm.io, if keyservers failed] **************************************************************************************************************************************************************************
skipping: [160.1.4.4] => (item=mpapis.asc)
skipping: [160.1.4.4] => (item=pkuczynski.asc)
TASK [rvm.ruby : Install rvm] ****************************************************************************************************************************************************************************************************************
skipping: [160.1.4.4]
TASK [rvm.ruby : Update rvm] *****************************************************************************************************************************************************************************************************************
ok: [160.1.4.4]
TASK [rvm.ruby : Configure rvm] **************************************************************************************************************************************************************************************************************
skipping: [160.1.4.4]
TASK [rvm.ruby : Detect if rubies are installed] *********************************************************************************************************************************************************************************************
ok: [160.1.4.4] => (item=ruby-2.2.5)
TASK [rvm.ruby : Install rubies] *************************************************************************************************************************************************************************************************************
skipping: [160.1.4.4] => (item={'_ansible_parsed': True, 'stderr_lines': [], '_ansible_item_result': True, u'end': u'2019-05-13 19:17:28.163497', '_ansible_no_log': False, u'stdout': u'', u'cmd': [u'/usr/local/rvm/bin/rvm', u'ruby-2.2.5', u'do', u'true'], u'rc': 0, 'item': u'ruby-2.2.5', u'delta': u'0:00:00.312638', u'stderr': u'', u'changed': False, u'invocation': {u'module_args': {u'creates': None, u'executable': None, u'_uses_shell': False, u'_raw_params': u'/usr/local/rvm/bin/rvm ruby-2.2.5 do true', u'removes': None, u'warn': True, u'chdir': None, u'stdin': None}}, 'stdout_lines': [], 'failed_when_result': False, u'start': u'2019-05-13 19:17:27.850859', '_ansible_ignore_errors': None, 'failed': False})
TASK [rvm.ruby : Detect default ruby version] ************************************************************************************************************************************************************************************************
ok: [160.1.4.4]
TASK [rvm.ruby : Select default ruby] ********************************************************************************************************************************************************************************************************
skipping: [160.1.4.4]
TASK [rvm.ruby : Detect installed ruby patch number] *****************************************************************************************************************************************************************************************
ok: [160.1.4.4] => (item=ruby-2.2.5)
TASK [rvm.ruby : Install bundler if not installed] *******************************************************************************************************************************************************************************************
skipping: [160.1.4.4] => (item={'_ansible_parsed': True, 'stderr_lines': [], '_ansible_item_result': True, u'end': u'2019-05-13 19:17:40.324044', '_ansible_no_log': False, u'stdout': u'ruby-2.2.5', u'cmd': u'/usr/local/rvm/bin/rvm list strings | grep ruby-2.2.5 | tail -n 1', u'rc': 0, 'item': u'ruby-2.2.5', u'delta': u'0:00:00.237934', u'stderr': u'', u'changed': False, u'invocation': {u'module_args': {u'creates': None, u'executable': None, u'_uses_shell': True, u'_raw_params': u'/usr/local/rvm/bin/rvm list strings | grep ruby-2.2.5 | tail -n 1', u'removes': None, u'warn': True, u'chdir': None, u'stdin': None}}, 'stdout_lines': [u'ruby-2.2.5'], u'start': u'2019-05-13 19:17:40.086110', '_ansible_ignore_errors': None, 'failed': False})
TASK [rvm.ruby : Symlink ruby related binaries on the system path] ***************************************************************************************************************************************************************************
skipping: [160.1.4.4] => (item=erb)
skipping: [160.1.4.4] => (item=executable-hooks-uninstaller)
skipping: [160.1.4.4] => (item=gem)
skipping: [160.1.4.4] => (item=irb)
skipping: [160.1.4.4] => (item=rake)
skipping: [160.1.4.4] => (item=rdoc)
skipping: [160.1.4.4] => (item=ri)
skipping: [160.1.4.4] => (item=ruby)
TASK [rvm.ruby : Symlink bundler binaries on the system path] ********************************************************************************************************************************************************************************
skipping: [160.1.4.4] => (item=bundle)
skipping: [160.1.4.4] => (item=bundler)
TASK [rvm.ruby : Detect if ruby version can be deleted] **************************************************************************************************************************************************************************************
skipping: [160.1.4.4]
TASK [rvm.ruby : Delete ruby version] ********************************************************************************************************************************************************************************************************
skipping: [160.1.4.4]
TASK [ruby : Make rvm rc file accessible to all users] ***************************************************************************************************************************************************************************************
ok: [160.1.4.4]
TASK [integration_appliance : Install bundler] ***********************************************************************************************************************************************************************************************
changed: [160.1.4.4]
TASK [integration_appliance : Add outbox user] ***********************************************************************************************************************************************************************************************
ok: [160.1.4.4]
TASK [integration_appliance : Samba outbox directory] ****************************************************************************************************************************************************************************************
ok: [160.1.4.4]
TASK [rails_app : Add app user] **************************************************************************************************************************************************************************************************************
ok: [160.1.4.4]
TASK [rails_app : Create apps container folder] **********************************************************************************************************************************************************************************************
ok: [160.1.4.4]
TASK [rails_app : Create app folder] *********************************************************************************************************************************************************************************************************
ok: [160.1.4.4]
TASK [rails_app : Clone a private repository into /var/www/.] ********************************************************************************************************************************************************************************
ok: [160.1.4.4]
TASK [rails_app : Install app gems (bundler)] ************************************************************************************************************************************************************************************************
fatal: [160.1.4.4]: FAILED! => {"changed": false, "cmd": "/usr/local/rvm,/gems/ruby-2.2.5/bin/bundle install --gemfile /var/www/integration_proxy_app/Gemfile --deployment", "msg": "", "rc": 5, "stderr": "", "stderr_lines": [], "stdout": "The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.\nFetching gem metadata from https://rubygems.org/............\nUsing rake 12.0.0\nUsing concurrent-ruby 1.0.5\nUsing i18n 0.8.6\nUsing minitest 5.10.3\nUsing thread_safe 0.3.6\nUsing tzinfo 1.2.3\nUsing activesupport 5.1.4\nUsing builder 3.2.3\nUsing erubi 1.6.1\nUsing mini_portile2 2.2.0\nFetching nokogiri 1.8.0\nInstalling nokogiri 1.8.0 with native extensions\nGem::Ext::BuildError: ERROR: Failed to build gem native extension.\n\ncurrent directory:\n/var/www/integration_proxy_app/vendor/bundle/ruby/2.2.0/gems/nokogiri-1.8.0/ext/nokogiri\n/usr/local/rvm,/rubies/ruby-2.2.5/bin/ruby -r\n./siteconf20190513-19987-17td815.rb extconf.rb\nchecking if the C compiler accepts ... *** extconf.rb failed ***\nCould not create Makefile due to some reason, probably lack of necessary\nlibraries and/or headers. Check the mkmf.log file for more details. You may\nneed configuration options.\n\nProvided configuration options:\n\t--with-opt-dir\n\t--without-opt-dir\n\t--with-opt-include\n\t--without-opt-include=${opt-dir}/include\n\t--with-opt-lib\n\t--without-opt-lib=${opt-dir}/lib\n\t--with-make-prog\n\t--without-make-prog\n\t--srcdir=.\n\t--curdir\n\t--ruby=/usr/local/rvm,/rubies/ruby-2.2.5/bin/$(RUBY_BASE_NAME)\n\t--help\n\t--clean\n/usr/local/rvm,/rubies/ruby-2.2.5/lib/ruby/2.2.0/mkmf.rb:456:in `try_do': The\ncompiler failed to generate an executable file. (RuntimeError)\nYou have to install development tools first.\nfrom /usr/local/rvm,/rubies/ruby-2.2.5/lib/ruby/2.2.0/mkmf.rb:571:in `block in\ntry_compile'\nfrom /usr/local/rvm,/rubies/ruby-2.2.5/lib/ruby/2.2.0/mkmf.rb:522:in\n`with_werror'\nfrom /usr/local/rvm,/rubies/ruby-2.2.5/lib/ruby/2.2.0/mkmf.rb:571:in\n`try_compile'\n\tfrom extconf.rb:138:in `nokogiri_try_compile'\n\tfrom extconf.rb:162:in `block in add_cflags'\nfrom /usr/local/rvm,/rubies/ruby-2.2.5/lib/ruby/2.2.0/mkmf.rb:619:in\n`with_cflags'\n\tfrom extconf.rb:161:in `add_cflags'\n\tfrom extconf.rb:407:in `<main>'\n\nTo see why this extension failed to compile, please check the mkmf.log which can\nbe found here:\n\n/var/www/integration_proxy_app/vendor/bundle/ruby/2.2.0/extensions/x86_64-linux/2.2.0/nokogiri-1.8.0/mkmf.log\n\nextconf failed, exit code 1\n\nGem files will remain installed in\n/var/www/integration_proxy_app/vendor/bundle/ruby/2.2.0/gems/nokogiri-1.8.0 for\ninspection.\nResults logged to\n/var/www/integration_proxy_app/vendor/bundle/ruby/2.2.0/extensions/x86_64-linux/2.2.0/nokogiri-1.8.0/gem_make.out\n\nAn error occurred while installing nokogiri (1.8.0), and Bundler cannot\ncontinue.\nMake sure that `gem install nokogiri -v '1.8.0' --source\n'https://rubygems.org/'` succeeds before bundling.\n\nIn Gemfile:\n rails was resolved to 5.1.4, which depends on\n actioncable was resolved to 5.1.4, which depends on\n actionpack was resolved to 5.1.4, which depends on\n actionview was resolved to 5.1.4, which depends on\n rails-dom-testing was resolved to 2.0.3, which depends on\n nokogiri\n", "stdout_lines": ["The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.", "Fetching gem metadata from https://rubygems.org/............", "Using rake 12.0.0", "Using concurrent-ruby 1.0.5", "Using i18n 0.8.6", "Using minitest 5.10.3", "Using thread_safe 0.3.6", "Using tzinfo 1.2.3", "Using activesupport 5.1.4", "Using builder 3.2.3", "Using erubi 1.6.1", "Using mini_portile2 2.2.0", "Fetching nokogiri 1.8.0", "Installing nokogiri 1.8.0 with native extensions", "Gem::Ext::BuildError: ERROR: Failed to build gem native extension.", "", "current directory:", "/var/www/integration_proxy_app/vendor/bundle/ruby/2.2.0/gems/nokogiri-1.8.0/ext/nokogiri", "/usr/local/rvm,/rubies/ruby-2.2.5/bin/ruby -r", "./siteconf20190513-19987-17td815.rb extconf.rb", "checking if the C compiler accepts ... *** extconf.rb failed ***", "Could not create Makefile due to some reason, probably lack of necessary", "libraries and/or headers. Check the mkmf.log file for more details. You may", "need configuration options.", "", "Provided configuration options:", "\t--with-opt-dir", "\t--without-opt-dir", "\t--with-opt-include", "\t--without-opt-include=${opt-dir}/include", "\t--with-opt-lib", "\t--without-opt-lib=${opt-dir}/lib", "\t--with-make-prog", "\t--without-make-prog", "\t--srcdir=.", "\t--curdir", "\t--ruby=/usr/local/rvm,/rubies/ruby-2.2.5/bin/$(RUBY_BASE_NAME)", "\t--help", "\t--clean", "/usr/local/rvm,/rubies/ruby-2.2.5/lib/ruby/2.2.0/mkmf.rb:456:in `try_do': The", "compiler failed to generate an executable file. (RuntimeError)", "You have to install development tools first.", "from /usr/local/rvm,/rubies/ruby-2.2.5/lib/ruby/2.2.0/mkmf.rb:571:in `block in", "try_compile'", "from /usr/local/rvm,/rubies/ruby-2.2.5/lib/ruby/2.2.0/mkmf.rb:522:in", "`with_werror'", "from /usr/local/rvm,/rubies/ruby-2.2.5/lib/ruby/2.2.0/mkmf.rb:571:in", "`try_compile'", "\tfrom extconf.rb:138:in `nokogiri_try_compile'", "\tfrom extconf.rb:162:in `block in add_cflags'", "from /usr/local/rvm,/rubies/ruby-2.2.5/lib/ruby/2.2.0/mkmf.rb:619:in", "`with_cflags'", "\tfrom extconf.rb:161:in `add_cflags'", "\tfrom extconf.rb:407:in `<main>'", "", "To see why this extension failed to compile, please check the mkmf.log which can", "be found here:", "", "/var/www/integration_proxy_app/vendor/bundle/ruby/2.2.0/extensions/x86_64-linux/2.2.0/nokogiri-1.8.0/mkmf.log", "", "extconf failed, exit code 1", "", "Gem files will remain installed in", "/var/www/integration_proxy_app/vendor/bundle/ruby/2.2.0/gems/nokogiri-1.8.0 for", "inspection.", "Results logged to", "/var/www/integration_proxy_app/vendor/bundle/ruby/2.2.0/extensions/x86_64-linux/2.2.0/nokogiri-1.8.0/gem_make.out", "", "An error occurred while installing nokogiri (1.8.0), and Bundler cannot", "continue.", "Make sure that `gem install nokogiri -v '1.8.0' --source", "'https://rubygems.org/'` succeeds before bundling.", "", "In Gemfile:", " rails was resolved to 5.1.4, which depends on", " actioncable was resolved to 5.1.4, which depends on", " actionpack was resolved to 5.1.4, which depends on", " actionview was resolved to 5.1.4, which depends on", " rails-dom-testing was resolved to 2.0.3, which depends on", " nokogiri"]}
to retry, use: --limit @/Users/sergey/RubymineProjects/integration_appliance_ansible/integration_appliance.retry
PLAY RECAP ***********************************************************************************************************************************************************************************************************************************
160.1.4.4 : ok=25 changed=1 unreachable=0 failed=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment