Skip to content

Instantly share code, notes, and snippets.

@sbeliakou
Created January 31, 2017 19:37
Show Gist options
  • Save sbeliakou/b4727133f29bfe8a42c4653fd26b396c to your computer and use it in GitHub Desktop.
Save sbeliakou/b4727133f29bfe8a42c4653fd26b396c to your computer and use it in GitHub Desktop.
Using /Users/sbeliakou/Desktop/mntlab/cm/vagrant/tests/ansible.cfg as config file
PLAYBOOK: test.yml *************************************************************
1 plays in ./test.yml
PLAY [notverified] *************************************************************
TASK [setup] *******************************************************************
ok: [EPBYMINW2470.minsk.epam.com]
ok: [EPBYMINW2467.minsk.epam.com]
ok: [EPBYMINW3088.minsk.epam.com]
ok: [EPBYMINW2033.minsk.epam.com]
ok: [EPBYMINW2468.minsk.epam.com]
ok: [EPBYMINW2472.minsk.epam.com]
ok: [EPBYMINW2473.minsk.epam.com]
ok: [EPBYMINW2471.minsk.epam.com]
ok: [EPBYMINW1969.minsk.epam.com]
fatal: [EPBYMINW2466.minsk.epam.com]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: Warning: Permanently added 'epbyminw2466.minsk.epam.com,10.6.103.21' (ECDSA) to the list of known hosts.\r\nPermission denied (publickey,gssapi-keyex,gssapi-with-mic,password).\r\n", "unreachable": true}
ok: [EPBYMINW3092.minsk.epam.com]
ok: [EPBYMINW3093.minsk.epam.com]
ok: [EPBYMINW6405.minsk.epam.com]
ok: [EPBYMINW6406.minsk.epam.com]
fatal: [EPBYMINW2976.minsk.epam.com]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: Warning: Permanently added 'epbyminw2976.minsk.epam.com,10.6.102.26' (ECDSA) to the list of known hosts.\r\nPermission denied (publickey,gssapi-keyex,gssapi-with-mic,password).\r\n", "unreachable": true}
fatal: [EPBYMINW1766.minsk.epam.com]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: ssh: connect to host epbyminw1766.minsk.epam.com port 22: Operation timed out\r\n", "unreachable": true}
fatal: [EPBYMINW2695.minsk.epam.com]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: ssh: connect to host epbyminw2695.minsk.epam.com port 22: Operation timed out\r\n", "unreachable": true}
fatal: [EPBYMINW2629.minsk.epam.com]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: ssh: connect to host epbyminw2629.minsk.epam.com port 22: Operation timed out\r\n", "unreachable": true}
fatal: [EPBYMINW1374.minsk.epam.com]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: ssh: connect to host epbyminw1374.minsk.epam.com port 22: Operation timed out\r\n", "unreachable": true}
TASK [vagrant up] **************************************************************
task path: /Users/sbeliakou/Desktop/mntlab/cm/vagrant/tests/test.yml:9
fatal: [EPBYMINW2033.minsk.epam.com]: FAILED! => {"changed": false, "failed": true, "module_stderr": "Shared connection to epbyminw2033.minsk.epam.com closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n File \"/tmp/ansible_4mUtqZ/ansible_module_command.py\", line 212, in <module>\r\n main()\r\n File \"/tmp/ansible_4mUtqZ/ansible_module_command.py\", line 155, in main\r\n os.chdir(chdir)\r\nOSError: [Errno 2] No such file or directory: '/home/student/workspace/vagrant'\r\n", "msg": "MODULE FAILURE"}
fatal: [EPBYMINW2472.minsk.epam.com]: FAILED! => {"changed": false, "failed": true, "module_stderr": "Shared connection to epbyminw2472.minsk.epam.com closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n File \"/tmp/ansible_1VrkQ6/ansible_module_command.py\", line 212, in <module>\r\n main()\r\n File \"/tmp/ansible_1VrkQ6/ansible_module_command.py\", line 155, in main\r\n os.chdir(chdir)\r\nOSError: [Errno 2] No such file or directory: '/home/student/workspace/vagrant'\r\n", "msg": "MODULE FAILURE"}
fatal: [EPBYMINW3088.minsk.epam.com]: FAILED! => {"changed": true, "cmd": "pwd\n ls -l\n echo\n echo \"starting vagrant project\"\n vagrant up\n", "delta": "0:00:00.789037", "end": "2017-01-31 22:36:32.498856", "failed": true, "rc": 1, "start": "2017-01-31 22:36:31.709819", "stderr": "A Vagrant environment or target machine is required to run this\ncommand. Run `vagrant init` to create a new Vagrant environment. Or,\nget an ID of a target machine from `vagrant global-status` to run\nthis command on. A final option is to change to a directory with a\nVagrantfile and to try again.", "stdout": "/home/student/workspace/vagrant\ntotal 4\ndrwxrwxr-x. 3 student student 4096 Jan 31 16:21 mntlab\n\nstarting vagrant project", "stdout_lines": ["/home/student/workspace/vagrant", "total 4", "drwxrwxr-x. 3 student student 4096 Jan 31 16:21 mntlab", "", "starting vagrant project"], "warnings": []}
stdout: /home/student/workspace/vagrant
total 4
drwxrwxr-x. 3 student student 4096 Jan 31 16:21 mntlab
starting vagrant project
stderr: A Vagrant environment or target machine is required to run this
command. Run `vagrant init` to create a new Vagrant environment. Or,
get an ID of a target machine from `vagrant global-status` to run
this command on. A final option is to change to a directory with a
Vagrantfile and to try again.
changed: [EPBYMINW2468.minsk.epam.com] => {"changed": true, "cmd": "pwd\n ls -l\n echo\n echo \"starting vagrant project\"\n vagrant up\n", "delta": "0:00:02.776149", "end": "2017-01-31 22:36:34.384087", "rc": 0, "start": "2017-01-31 22:36:31.607938", "stderr": "", "stdout": "/home/student/workspace/vagrant\ntotal 4\n-rw-rw-r--. 1 student student 949 Jan 31 20:23 Vagrantfile\n\nstarting vagrant project\nBringing machine 'nginx' up with 'virtualbox' provider...\nBringing machine 'tomcat' up with 'virtualbox' provider...\n==> nginx: Machine already provisioned. Run `vagrant provision` or use the `--provision`\n==> nginx: flag to force provisioning. Provisioners marked to run always will still run.\n==> tomcat: Machine already provisioned. Run `vagrant provision` or use the `--provision`\n==> tomcat: flag to force provisioning. Provisioners marked to run always will still run.", "stdout_lines": ["/home/student/workspace/vagrant", "total 4", "-rw-rw-r--. 1 student student 949 Jan 31 20:23 Vagrantfile", "", "starting vagrant project", "Bringing machine 'nginx' up with 'virtualbox' provider...", "Bringing machine 'tomcat' up with 'virtualbox' provider...", "==> nginx: Machine already provisioned. Run `vagrant provision` or use the `--provision`", "==> nginx: flag to force provisioning. Provisioners marked to run always will still run.", "==> tomcat: Machine already provisioned. Run `vagrant provision` or use the `--provision`", "==> tomcat: flag to force provisioning. Provisioners marked to run always will still run."], "warnings": []}
stdout: /home/student/workspace/vagrant
total 4
-rw-rw-r--. 1 student student 949 Jan 31 20:23 Vagrantfile
starting vagrant project
Bringing machine 'nginx' up with 'virtualbox' provider...
Bringing machine 'tomcat' up with 'virtualbox' provider...
==> nginx: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> nginx: flag to force provisioning. Provisioners marked to run always will still run.
==> tomcat: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> tomcat: flag to force provisioning. Provisioners marked to run always will still run.
changed: [EPBYMINW2467.minsk.epam.com] => {"changed": true, "cmd": "pwd\n ls -l\n echo\n echo \"starting vagrant project\"\n vagrant up\n", "delta": "0:00:02.735149", "end": "2017-01-31 22:36:34.403506", "rc": 0, "start": "2017-01-31 22:36:31.668357", "stderr": "", "stdout": "/home/student/workspace/vagrant\ntotal 12\ndrwxrwxr-x. 2 student student 4096 Jan 31 14:10 rsync\ndrwxrwxr-x. 2 student student 4096 Jan 31 18:12 shared\n-rw-rw-r--. 1 student student 1851 Jan 31 18:45 Vagrantfile\n\nstarting vagrant project\nBringing machine 'nginx' up with 'virtualbox' provider...\nBringing machine 'tomcat' up with 'virtualbox' provider...\n==> nginx: Machine already provisioned. Run `vagrant provision` or use the `--provision`\n==> nginx: flag to force provisioning. Provisioners marked to run always will still run.\n==> tomcat: Machine already provisioned. Run `vagrant provision` or use the `--provision`\n==> tomcat: flag to force provisioning. Provisioners marked to run always will still run.", "stdout_lines": ["/home/student/workspace/vagrant", "total 12", "drwxrwxr-x. 2 student student 4096 Jan 31 14:10 rsync", "drwxrwxr-x. 2 student student 4096 Jan 31 18:12 shared", "-rw-rw-r--. 1 student student 1851 Jan 31 18:45 Vagrantfile", "", "starting vagrant project", "Bringing machine 'nginx' up with 'virtualbox' provider...", "Bringing machine 'tomcat' up with 'virtualbox' provider...", "==> nginx: Machine already provisioned. Run `vagrant provision` or use the `--provision`", "==> nginx: flag to force provisioning. Provisioners marked to run always will still run.", "==> tomcat: Machine already provisioned. Run `vagrant provision` or use the `--provision`", "==> tomcat: flag to force provisioning. Provisioners marked to run always will still run."], "warnings": []}
stdout: /home/student/workspace/vagrant
total 12
drwxrwxr-x. 2 student student 4096 Jan 31 14:10 rsync
drwxrwxr-x. 2 student student 4096 Jan 31 18:12 shared
-rw-rw-r--. 1 student student 1851 Jan 31 18:45 Vagrantfile
starting vagrant project
Bringing machine 'nginx' up with 'virtualbox' provider...
Bringing machine 'tomcat' up with 'virtualbox' provider...
==> nginx: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> nginx: flag to force provisioning. Provisioners marked to run always will still run.
==> tomcat: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> tomcat: flag to force provisioning. Provisioners marked to run always will still run.
changed: [EPBYMINW2470.minsk.epam.com] => {"changed": true, "cmd": "pwd\n ls -l\n echo\n echo \"starting vagrant project\"\n vagrant up\n", "delta": "0:00:02.919748", "end": "2017-01-31 22:36:34.548125", "rc": 0, "start": "2017-01-31 22:36:31.628377", "stderr": "", "stdout": "/home/student/workspace/vagrant\ntotal 28\n-rwxrwxr-x. 1 student student 182 Jan 31 20:02 nginx.sh\ndrwxrwxr-x. 4 student student 4096 Jan 31 20:02 share1\ndrwxrwxr-x. 2 student student 4096 Jan 31 20:02 share2\n-rw-rw-r--. 1 student student 14 Jan 31 22:20 student_name.txt\n-rwxrwxr-x. 1 student student 265 Jan 31 20:02 tomcat.sh\n-rw-rw-r--. 1 student student 1335 Jan 31 20:02 Vagrant.copy\n-rw-rw-r--. 1 student student 1413 Jan 31 22:07 Vagrantfile\n\nstarting vagrant project\nBringing machine 'nginx' up with 'virtualbox' provider...\nBringing machine 'tomcat' up with 'virtualbox' provider...\n==> nginx: Machine already provisioned. Run `vagrant provision` or use the `--provision`\n==> nginx: flag to force provisioning. Provisioners marked to run always will still run.\n==> tomcat: Machine already provisioned. Run `vagrant provision` or use the `--provision`\n==> tomcat: flag to force provisioning. Provisioners marked to run always will still run.", "stdout_lines": ["/home/student/workspace/vagrant", "total 28", "-rwxrwxr-x. 1 student student 182 Jan 31 20:02 nginx.sh", "drwxrwxr-x. 4 student student 4096 Jan 31 20:02 share1", "drwxrwxr-x. 2 student student 4096 Jan 31 20:02 share2", "-rw-rw-r--. 1 student student 14 Jan 31 22:20 student_name.txt", "-rwxrwxr-x. 1 student student 265 Jan 31 20:02 tomcat.sh", "-rw-rw-r--. 1 student student 1335 Jan 31 20:02 Vagrant.copy", "-rw-rw-r--. 1 student student 1413 Jan 31 22:07 Vagrantfile", "", "starting vagrant project", "Bringing machine 'nginx' up with 'virtualbox' provider...", "Bringing machine 'tomcat' up with 'virtualbox' provider...", "==> nginx: Machine already provisioned. Run `vagrant provision` or use the `--provision`", "==> nginx: flag to force provisioning. Provisioners marked to run always will still run.", "==> tomcat: Machine already provisioned. Run `vagrant provision` or use the `--provision`", "==> tomcat: flag to force provisioning. Provisioners marked to run always will still run."], "warnings": []}
stdout: /home/student/workspace/vagrant
total 28
-rwxrwxr-x. 1 student student 182 Jan 31 20:02 nginx.sh
drwxrwxr-x. 4 student student 4096 Jan 31 20:02 share1
drwxrwxr-x. 2 student student 4096 Jan 31 20:02 share2
-rw-rw-r--. 1 student student 14 Jan 31 22:20 student_name.txt
-rwxrwxr-x. 1 student student 265 Jan 31 20:02 tomcat.sh
-rw-rw-r--. 1 student student 1335 Jan 31 20:02 Vagrant.copy
-rw-rw-r--. 1 student student 1413 Jan 31 22:07 Vagrantfile
starting vagrant project
Bringing machine 'nginx' up with 'virtualbox' provider...
Bringing machine 'tomcat' up with 'virtualbox' provider...
==> nginx: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> nginx: flag to force provisioning. Provisioners marked to run always will still run.
==> tomcat: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> tomcat: flag to force provisioning. Provisioners marked to run always will still run.
fatal: [EPBYMINW1969.minsk.epam.com]: FAILED! => {"changed": false, "failed": true, "module_stderr": "Shared connection to epbyminw1969.minsk.epam.com closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n File \"/tmp/ansible_8JC5zD/ansible_module_command.py\", line 212, in <module>\r\n main()\r\n File \"/tmp/ansible_8JC5zD/ansible_module_command.py\", line 155, in main\r\n os.chdir(chdir)\r\nOSError: [Errno 2] No such file or directory: '/home/student/workspace/vagrant'\r\n", "msg": "MODULE FAILURE"}
fatal: [EPBYMINW3092.minsk.epam.com]: FAILED! => {"changed": false, "failed": true, "module_stderr": "Shared connection to epbyminw3092.minsk.epam.com closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n File \"/tmp/ansible_1gVNrp/ansible_module_command.py\", line 212, in <module>\r\n main()\r\n File \"/tmp/ansible_1gVNrp/ansible_module_command.py\", line 155, in main\r\n os.chdir(chdir)\r\nOSError: [Errno 2] No such file or directory: '/home/student/workspace/vagrant'\r\n", "msg": "MODULE FAILURE"}
changed: [EPBYMINW2471.minsk.epam.com] => {"changed": true, "cmd": "pwd\n ls -l\n echo\n echo \"starting vagrant project\"\n vagrant up\n", "delta": "0:00:02.901649", "end": "2017-01-31 22:36:35.819289", "rc": 0, "start": "2017-01-31 22:36:32.917640", "stderr": "", "stdout": "/home/student/workspace/vagrant\ntotal 538008\ndrwxrwxr-x. 2 student student 4096 Jan 31 13:31 mntlab\n-rw-r--r--. 1 student student 303 Jan 31 22:09 nginxsetup.sh\n-rw-rw-r--. 1 student student 550884900 Jan 30 21:35 sbeliakou-vagrant-centos-6.8-x86_64.box\n-rw-r--r--. 1 student student 911 Jan 31 22:25 tomcatsetup.sh\n-rw-r--r--. 1 student student 4341 Jan 31 21:11 v\n-rw-rw-r--. 1 student student 4367 Jan 31 22:09 Vagrantfile\n\nstarting vagrant project\nBringing machine 'tomcat' up with 'virtualbox' provider...\nBringing machine 'nginx' up with 'virtualbox' provider...\n==> tomcat: Machine already provisioned. Run `vagrant provision` or use the `--provision`\n==> tomcat: flag to force provisioning. Provisioners marked to run always will still run.\n==> nginx: Machine already provisioned. Run `vagrant provision` or use the `--provision`\n==> nginx: flag to force provisioning. Provisioners marked to run always will still run.", "stdout_lines": ["/home/student/workspace/vagrant", "total 538008", "drwxrwxr-x. 2 student student 4096 Jan 31 13:31 mntlab", "-rw-r--r--. 1 student student 303 Jan 31 22:09 nginxsetup.sh", "-rw-rw-r--. 1 student student 550884900 Jan 30 21:35 sbeliakou-vagrant-centos-6.8-x86_64.box", "-rw-r--r--. 1 student student 911 Jan 31 22:25 tomcatsetup.sh", "-rw-r--r--. 1 student student 4341 Jan 31 21:11 v", "-rw-rw-r--. 1 student student 4367 Jan 31 22:09 Vagrantfile", "", "starting vagrant project", "Bringing machine 'tomcat' up with 'virtualbox' provider...", "Bringing machine 'nginx' up with 'virtualbox' provider...", "==> tomcat: Machine already provisioned. Run `vagrant provision` or use the `--provision`", "==> tomcat: flag to force provisioning. Provisioners marked to run always will still run.", "==> nginx: Machine already provisioned. Run `vagrant provision` or use the `--provision`", "==> nginx: flag to force provisioning. Provisioners marked to run always will still run."], "warnings": []}
stdout: /home/student/workspace/vagrant
total 538008
drwxrwxr-x. 2 student student 4096 Jan 31 13:31 mntlab
-rw-r--r--. 1 student student 303 Jan 31 22:09 nginxsetup.sh
-rw-rw-r--. 1 student student 550884900 Jan 30 21:35 sbeliakou-vagrant-centos-6.8-x86_64.box
-rw-r--r--. 1 student student 911 Jan 31 22:25 tomcatsetup.sh
-rw-r--r--. 1 student student 4341 Jan 31 21:11 v
-rw-rw-r--. 1 student student 4367 Jan 31 22:09 Vagrantfile
starting vagrant project
Bringing machine 'tomcat' up with 'virtualbox' provider...
Bringing machine 'nginx' up with 'virtualbox' provider...
==> tomcat: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> tomcat: flag to force provisioning. Provisioners marked to run always will still run.
==> nginx: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> nginx: flag to force provisioning. Provisioners marked to run always will still run.
fatal: [EPBYMINW6406.minsk.epam.com]: FAILED! => {"changed": false, "failed": true, "module_stderr": "Shared connection to epbyminw6406.minsk.epam.com closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n File \"/tmp/ansible_rfivuz/ansible_module_command.py\", line 212, in <module>\r\n main()\r\n File \"/tmp/ansible_rfivuz/ansible_module_command.py\", line 155, in main\r\n os.chdir(chdir)\r\nOSError: [Errno 2] No such file or directory: '/home/student/workspace/vagrant'\r\n", "msg": "MODULE FAILURE"}
fatal: [EPBYMINW2473.minsk.epam.com]: FAILED! => {"changed": true, "cmd": "pwd\n ls -l\n echo\n echo \"starting vagrant project\"\n vagrant up\n", "delta": "0:00:03.575521", "end": "2017-01-31 22:36:36.410515", "failed": true, "rc": 1, "start": "2017-01-31 22:36:32.834994", "stderr": "The box you're attempting to add doesn't support the provider\nyou requested. Please find an alternate box or use an alternate\nprovider. Double-check your requested provider to verify you didn't\nsimply misspell it.\n\nIf you're adding a box from HashiCorp's Atlas, make sure the box is\nreleased.\n\nName: sunofsparda/centos-6.8-x86_64\nAddress: https://atlas.hashicorp.com/sunofsparda/centos-6.8-x86_64\nRequested provider: [:virtualbox]", "stdout": "/home/student/workspace/vagrant\ntotal 12\ndrwxrwxr-x. 3 student student 4096 Jan 31 20:31 install\n-rw-rw-r--. 1 student student 4057 Jan 31 20:31 Vagrantfile\n-rwxrwxr-x. 1 student student 234 Jan 31 20:31 vjuh.sh\n\nstarting vagrant project\nBringing machine 'vm1' up with 'virtualbox' provider...\nBringing machine 'vm2' up with 'virtualbox' provider...\n==> vm1: Box 'sunofsparda/centos-6.8-x86_64' could not be found. Attempting to find and install...\n vm1: Box Provider: virtualbox\n vm1: Box Version: >= 0\n==> vm1: Loading metadata for box 'sunofsparda/centos-6.8-x86_64'\n vm1: URL: https://atlas.hashicorp.com/sunofsparda/centos-6.8-x86_64", "stdout_lines": ["/home/student/workspace/vagrant", "total 12", "drwxrwxr-x. 3 student student 4096 Jan 31 20:31 install", "-rw-rw-r--. 1 student student 4057 Jan 31 20:31 Vagrantfile", "-rwxrwxr-x. 1 student student 234 Jan 31 20:31 vjuh.sh", "", "starting vagrant project", "Bringing machine 'vm1' up with 'virtualbox' provider...", "Bringing machine 'vm2' up with 'virtualbox' provider...", "==> vm1: Box 'sunofsparda/centos-6.8-x86_64' could not be found. Attempting to find and install...", " vm1: Box Provider: virtualbox", " vm1: Box Version: >= 0", "==> vm1: Loading metadata for box 'sunofsparda/centos-6.8-x86_64'", " vm1: URL: https://atlas.hashicorp.com/sunofsparda/centos-6.8-x86_64"], "warnings": []}
stdout: /home/student/workspace/vagrant
total 12
drwxrwxr-x. 3 student student 4096 Jan 31 20:31 install
-rw-rw-r--. 1 student student 4057 Jan 31 20:31 Vagrantfile
-rwxrwxr-x. 1 student student 234 Jan 31 20:31 vjuh.sh
starting vagrant project
Bringing machine 'vm1' up with 'virtualbox' provider...
Bringing machine 'vm2' up with 'virtualbox' provider...
==> vm1: Box 'sunofsparda/centos-6.8-x86_64' could not be found. Attempting to find and install...
vm1: Box Provider: virtualbox
vm1: Box Version: >= 0
==> vm1: Loading metadata for box 'sunofsparda/centos-6.8-x86_64'
vm1: URL: https://atlas.hashicorp.com/sunofsparda/centos-6.8-x86_64
stderr: The box you're attempting to add doesn't support the provider
you requested. Please find an alternate box or use an alternate
provider. Double-check your requested provider to verify you didn't
simply misspell it.
If you're adding a box from HashiCorp's Atlas, make sure the box is
released.
Name: sunofsparda/centos-6.8-x86_64
Address: https://atlas.hashicorp.com/sunofsparda/centos-6.8-x86_64
Requested provider: [:virtualbox]
fatal: [EPBYMINW3093.minsk.epam.com]: FAILED! => {"changed": true, "cmd": "pwd\n ls -l\n echo\n echo \"starting vagrant project\"\n vagrant up\n", "delta": "0:00:01.806821", "end": "2017-01-31 22:36:36.970522", "failed": true, "rc": 1, "start": "2017-01-31 22:36:35.163701", "stderr": "There are errors in the configuration of this machine. Please fix\nthe following errors and try again:\n\nvm:\n* The host path of the shared folder is missing: /home/student/lab/vgr/nginx_src/", "stdout": "/home/student/workspace/vagrant\ntotal 4\n-rw-rw-r--. 1 student student 1775 Jan 31 19:57 Vagrantfile\n\nstarting vagrant project\nBringing machine 'nginx' up with 'virtualbox' provider...\nBringing machine 'tomcat' up with 'virtualbox' provider...", "stdout_lines": ["/home/student/workspace/vagrant", "total 4", "-rw-rw-r--. 1 student student 1775 Jan 31 19:57 Vagrantfile", "", "starting vagrant project", "Bringing machine 'nginx' up with 'virtualbox' provider...", "Bringing machine 'tomcat' up with 'virtualbox' provider..."], "warnings": []}
stdout: /home/student/workspace/vagrant
total 4
-rw-rw-r--. 1 student student 1775 Jan 31 19:57 Vagrantfile
starting vagrant project
Bringing machine 'nginx' up with 'virtualbox' provider...
Bringing machine 'tomcat' up with 'virtualbox' provider...
stderr: There are errors in the configuration of this machine. Please fix
the following errors and try again:
vm:
* The host path of the shared folder is missing: /home/student/lab/vgr/nginx_src/
fatal: [EPBYMINW6405.minsk.epam.com]: FAILED! => {"changed": true, "cmd": "pwd\n ls -l\n echo\n echo \"starting vagrant project\"\n vagrant up\n", "delta": "0:00:02.494498", "end": "2017-01-31 22:36:38.196164", "failed": true, "rc": 1, "start": "2017-01-31 22:36:35.701666", "stderr": "An error occurred while downloading the remote file. The error\nmessage, if any, is reproduced below. Please fix this error and try\nagain.\n\nCouldn't open file /home/student/workspace/vagrant/base", "stdout": "/home/student/workspace/vagrant\ntotal 4\n-rw-rw-r--. 1 student student 3008 Jan 31 21:44 Vagrantfile\n\nstarting vagrant project\nBringing machine 'default' up with 'virtualbox' provider...\n==> default: Box 'base' could not be found. Attempting to find and install...\n default: Box Provider: virtualbox\n default: Box Version: >= 0\n==> default: Box file was not detected as metadata. Adding it directly...\n==> default: Adding box 'base' (v0) for provider: virtualbox\n default: Downloading: base\n\r\u001b[K", "stdout_lines": ["/home/student/workspace/vagrant", "total 4", "-rw-rw-r--. 1 student student 3008 Jan 31 21:44 Vagrantfile", "", "starting vagrant project", "Bringing machine 'default' up with 'virtualbox' provider...", "==> default: Box 'base' could not be found. Attempting to find and install...", " default: Box Provider: virtualbox", " default: Box Version: >= 0", "==> default: Box file was not detected as metadata. Adding it directly...", "==> default: Adding box 'base' (v0) for provider: virtualbox", " default: Downloading: base", "", "\u001b[K"], "warnings": []}
stdout: /home/student/workspace/vagrant
total 4
-rw-rw-r--. 1 student student 3008 Jan 31 21:44 Vagrantfile
starting vagrant project
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'base' could not be found. Attempting to find and install...
default: Box Provider: virtualbox
default: Box Version: >= 0
==> default: Box file was not detected as metadata. Adding it directly...
==> default: Adding box 'base' (v0) for provider: virtualbox
default: Downloading: base

stderr: An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.
Couldn't open file /home/student/workspace/vagrant/base
TASK [check boxes amount] ******************************************************
task path: /Users/sbeliakou/Desktop/mntlab/cm/vagrant/tests/test.yml:18
changed: [EPBYMINW2467.minsk.epam.com] => {"changed": true, "cmd": "vagrant status\n [ $(vagrant status | grep running | wc -l) -ne 2 ] && exit 1 || echo\n", "delta": "0:00:03.189342", "end": "2017-01-31 22:36:41.916757", "rc": 0, "start": "2017-01-31 22:36:38.727415", "stderr": "", "stdout": "Current machine states:\n\nnginx running (virtualbox)\ntomcat running (virtualbox)\n\nThis environment represents multiple VMs. The VMs are all listed\nabove with their current state. For more information about a specific\nVM, run `vagrant status NAME`.", "stdout_lines": ["Current machine states:", "", "nginx running (virtualbox)", "tomcat running (virtualbox)", "", "This environment represents multiple VMs. The VMs are all listed", "above with their current state. For more information about a specific", "VM, run `vagrant status NAME`."], "warnings": []}
stdout: Current machine states:
nginx running (virtualbox)
tomcat running (virtualbox)
This environment represents multiple VMs. The VMs are all listed
above with their current state. For more information about a specific
VM, run `vagrant status NAME`.
changed: [EPBYMINW2468.minsk.epam.com] => {"changed": true, "cmd": "vagrant status\n [ $(vagrant status | grep running | wc -l) -ne 2 ] && exit 1 || echo\n", "delta": "0:00:03.233920", "end": "2017-01-31 22:36:41.956774", "rc": 0, "start": "2017-01-31 22:36:38.722854", "stderr": "", "stdout": "Current machine states:\n\nnginx running (virtualbox)\ntomcat running (virtualbox)\n\nThis environment represents multiple VMs. The VMs are all listed\nabove with their current state. For more information about a specific\nVM, run `vagrant status NAME`.", "stdout_lines": ["Current machine states:", "", "nginx running (virtualbox)", "tomcat running (virtualbox)", "", "This environment represents multiple VMs. The VMs are all listed", "above with their current state. For more information about a specific", "VM, run `vagrant status NAME`."], "warnings": []}
stdout: Current machine states:
nginx running (virtualbox)
tomcat running (virtualbox)
This environment represents multiple VMs. The VMs are all listed
above with their current state. For more information about a specific
VM, run `vagrant status NAME`.
changed: [EPBYMINW2471.minsk.epam.com] => {"changed": true, "cmd": "vagrant status\n [ $(vagrant status | grep running | wc -l) -ne 2 ] && exit 1 || echo\n", "delta": "0:00:03.374474", "end": "2017-01-31 22:36:42.095826", "rc": 0, "start": "2017-01-31 22:36:38.721352", "stderr": "", "stdout": "Current machine states:\n\ntomcat running (virtualbox)\nnginx running (virtualbox)\n\nThis environment represents multiple VMs. The VMs are all listed\nabove with their current state. For more information about a specific\nVM, run `vagrant status NAME`.", "stdout_lines": ["Current machine states:", "", "tomcat running (virtualbox)", "nginx running (virtualbox)", "", "This environment represents multiple VMs. The VMs are all listed", "above with their current state. For more information about a specific", "VM, run `vagrant status NAME`."], "warnings": []}
stdout: Current machine states:
tomcat running (virtualbox)
nginx running (virtualbox)
This environment represents multiple VMs. The VMs are all listed
above with their current state. For more information about a specific
VM, run `vagrant status NAME`.
changed: [EPBYMINW2470.minsk.epam.com] => {"changed": true, "cmd": "vagrant status\n [ $(vagrant status | grep running | wc -l) -ne 2 ] && exit 1 || echo\n", "delta": "0:00:03.445215", "end": "2017-01-31 22:36:42.158560", "rc": 0, "start": "2017-01-31 22:36:38.713345", "stderr": "", "stdout": "Current machine states:\n\nnginx running (virtualbox)\ntomcat running (virtualbox)\n\nThis environment represents multiple VMs. The VMs are all listed\nabove with their current state. For more information about a specific\nVM, run `vagrant status NAME`.", "stdout_lines": ["Current machine states:", "", "nginx running (virtualbox)", "tomcat running (virtualbox)", "", "This environment represents multiple VMs. The VMs are all listed", "above with their current state. For more information about a specific", "VM, run `vagrant status NAME`."], "warnings": []}
stdout: Current machine states:
nginx running (virtualbox)
tomcat running (virtualbox)
This environment represents multiple VMs. The VMs are all listed
above with their current state. For more information about a specific
VM, run `vagrant status NAME`.
TASK [vagrant tests] ***********************************************************
task path: /Users/sbeliakou/Desktop/mntlab/cm/vagrant/tests/test.yml:24
fatal: [EPBYMINW2468.minsk.epam.com]: FAILED! => {"changed": true, "cmd": "vagrant status | grep running | cut -d' ' -f1 | xargs --no-run-if-empty -iF vagrant ssh F -c \"curl -sIL localhost\"\n echo\n echo \"TOMCAT Forward:\"\n tcat=\"$(vagrant status | grep running | cut -d' ' -f1 | xargs -iF vagrant ssh F -c 'curl -s localhost' | grep Congratulations)\"\n [ -z $tcat ] && exit 1 || echo $tacat\n echo\n", "delta": "0:00:09.224607", "end": "2017-01-31 22:36:51.878833", "failed": true, "rc": 1, "start": "2017-01-31 22:36:42.654226", "stderr": "", "stdout": "\nTOMCAT Forward:", "stdout_lines": ["", "TOMCAT Forward:"], "warnings": []}
stdout:
TOMCAT Forward:
fatal: [EPBYMINW2467.minsk.epam.com]: FAILED! => {"changed": true, "cmd": "vagrant status | grep running | cut -d' ' -f1 | xargs --no-run-if-empty -iF vagrant ssh F -c \"curl -sIL localhost\"\n echo\n echo \"TOMCAT Forward:\"\n tcat=\"$(vagrant status | grep running | cut -d' ' -f1 | xargs -iF vagrant ssh F -c 'curl -s localhost' | grep Congratulations)\"\n [ -z $tcat ] && exit 1 || echo $tacat\n echo\n", "delta": "0:00:09.257685", "end": "2017-01-31 22:36:51.899356", "failed": true, "rc": 1, "start": "2017-01-31 22:36:42.641671", "stderr": "", "stdout": "\nTOMCAT Forward:", "stdout_lines": ["", "TOMCAT Forward:"], "warnings": []}
stdout:
TOMCAT Forward:
fatal: [EPBYMINW2471.minsk.epam.com]: FAILED! => {"changed": true, "cmd": "vagrant status | grep running | cut -d' ' -f1 | xargs --no-run-if-empty -iF vagrant ssh F -c \"curl -sIL localhost\"\n echo\n echo \"TOMCAT Forward:\"\n tcat=\"$(vagrant status | grep running | cut -d' ' -f1 | xargs -iF vagrant ssh F -c 'curl -s localhost' | grep Congratulations)\"\n [ -z $tcat ] && exit 1 || echo $tacat\n echo\n", "delta": "0:00:09.495312", "end": "2017-01-31 22:36:52.143164", "failed": true, "rc": 1, "start": "2017-01-31 22:36:42.647852", "stderr": "", "stdout": "HTTP/1.1 200 OK\r\nServer: nginx/1.10.2\r\nDate: Tue, 31 Jan 2017 19:36:46 GMT\r\nContent-Type: text/html\r\nContent-Length: 3698\r\nLast-Modified: Mon, 31 Oct 2016 12:37:31 GMT\r\nConnection: keep-alive\r\nETag: \"58173b0b-e72\"\r\nAccept-Ranges: bytes\r\n\r\n\nTOMCAT Forward:", "stdout_lines": ["HTTP/1.1 200 OK", "Server: nginx/1.10.2", "Date: Tue, 31 Jan 2017 19:36:46 GMT", "Content-Type: text/html", "Content-Length: 3698", "Last-Modified: Mon, 31 Oct 2016 12:37:31 GMT", "Connection: keep-alive", "ETag: \"58173b0b-e72\"", "Accept-Ranges: bytes", "", "", "TOMCAT Forward:"], "warnings": []}
stdout: HTTP/1.1 200 OK
Server: nginx/1.10.2
Date: Tue, 31 Jan 2017 19:36:46 GMT
Content-Type: text/html
Content-Length: 3698
Last-Modified: Mon, 31 Oct 2016 12:37:31 GMT
Connection: keep-alive
ETag: "58173b0b-e72"
Accept-Ranges: bytes
TOMCAT Forward:
changed: [EPBYMINW2470.minsk.epam.com] => {"changed": true, "cmd": "vagrant status | grep running | cut -d' ' -f1 | xargs --no-run-if-empty -iF vagrant ssh F -c \"curl -sIL localhost\"\n echo\n echo \"TOMCAT Forward:\"\n tcat=\"$(vagrant status | grep running | cut -d' ' -f1 | xargs -iF vagrant ssh F -c 'curl -s localhost' | grep Congratulations)\"\n [ -z $tcat ] && exit 1 || echo $tacat\n echo\n", "delta": "0:00:09.833200", "end": "2017-01-31 22:36:52.433059", "rc": 0, "start": "2017-01-31 22:36:42.599859", "stderr": "/bin/sh: line 4: [: too many arguments", "stdout": "HTTP/1.1 200 \r\nServer: nginx/1.10.2\r\nDate: Tue, 31 Jan 2017 19:36:41 GMT\r\nContent-Type: text/html;charset=UTF-8\r\nConnection: keep-alive\r\n\r\n\nTOMCAT Forward:", "stdout_lines": ["HTTP/1.1 200 ", "Server: nginx/1.10.2", "Date: Tue, 31 Jan 2017 19:36:41 GMT", "Content-Type: text/html;charset=UTF-8", "Connection: keep-alive", "", "", "TOMCAT Forward:"], "warnings": []}
stdout: HTTP/1.1 200
Server: nginx/1.10.2
Date: Tue, 31 Jan 2017 19:36:41 GMT
Content-Type: text/html;charset=UTF-8
Connection: keep-alive
TOMCAT Forward:
stderr: /bin/sh: line 4: [: too many arguments
TASK [show Vagrantfile] ********************************************************
task path: /Users/sbeliakou/Desktop/mntlab/cm/vagrant/tests/test.yml:34
changed: [EPBYMINW2470.minsk.epam.com] => {"changed": true, "cmd": "echo ls -l echo echo \"Vagrantfile:\" cat Vagrantfile", "delta": "0:00:00.002672", "end": "2017-01-31 22:36:52.840646", "rc": 0, "start": "2017-01-31 22:36:52.837974", "stderr": "", "stdout": "ls -l echo echo Vagrantfile: cat Vagrantfile", "stdout_lines": ["ls -l echo echo Vagrantfile: cat Vagrantfile"], "warnings": []}
stdout: ls -l echo echo Vagrantfile: cat Vagrantfile
TASK [student] *****************************************************************
task path: /Users/sbeliakou/Desktop/mntlab/cm/vagrant/tests/test.yml:43
changed: [EPBYMINW2470.minsk.epam.com] => {"changed": true, "cmd": "cat student_name.txt", "delta": "0:00:00.003037", "end": "2017-01-31 22:36:53.262327", "rc": 0, "start": "2017-01-31 22:36:53.259290", "stderr": "", "stdout": "Pavel Heraska", "stdout_lines": ["Pavel Heraska"], "warnings": []}
stdout: Pavel Heraska
to retry, use: --limit @/Users/sbeliakou/Desktop/mntlab/cm/vagrant/tests/test.retry
PLAY RECAP *********************************************************************
EPBYMINW1374.minsk.epam.com : ok=0 changed=0 unreachable=1 failed=0
EPBYMINW1766.minsk.epam.com : ok=0 changed=0 unreachable=1 failed=0
EPBYMINW1969.minsk.epam.com : ok=1 changed=0 unreachable=0 failed=1
EPBYMINW2033.minsk.epam.com : ok=1 changed=0 unreachable=0 failed=1
EPBYMINW2466.minsk.epam.com : ok=0 changed=0 unreachable=1 failed=0
EPBYMINW2467.minsk.epam.com : ok=3 changed=2 unreachable=0 failed=1
EPBYMINW2468.minsk.epam.com : ok=3 changed=2 unreachable=0 failed=1
EPBYMINW2470.minsk.epam.com : ok=6 changed=5 unreachable=0 failed=0
EPBYMINW2471.minsk.epam.com : ok=3 changed=2 unreachable=0 failed=1
EPBYMINW2472.minsk.epam.com : ok=1 changed=0 unreachable=0 failed=1
EPBYMINW2473.minsk.epam.com : ok=1 changed=0 unreachable=0 failed=1
EPBYMINW2629.minsk.epam.com : ok=0 changed=0 unreachable=1 failed=0
EPBYMINW2695.minsk.epam.com : ok=0 changed=0 unreachable=1 failed=0
EPBYMINW2976.minsk.epam.com : ok=0 changed=0 unreachable=1 failed=0
EPBYMINW3088.minsk.epam.com : ok=1 changed=0 unreachable=0 failed=1
EPBYMINW3092.minsk.epam.com : ok=1 changed=0 unreachable=0 failed=1
EPBYMINW3093.minsk.epam.com : ok=1 changed=0 unreachable=0 failed=1
EPBYMINW6405.minsk.epam.com : ok=1 changed=0 unreachable=0 failed=1
EPBYMINW6406.minsk.epam.com : ok=1 changed=0 unreachable=0 failed=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment