-
Notifications
You must be signed in to change notification settings - Fork 50
Apache service not running on vagrant up with CentOS 6 #352
Description
Problem
The Apache daemon (httpd) does not start on boot using vagrant up with a CentOS 6 Vlad box.
Steps to Reproduce
-
Boot into an Ubuntu 14.04 LTS host
-
Download and Install Vlad and VirtualBox 4.3.36
-
Follow the Getting Started instructions with VirtualBox as your virtual machine provider
-
Set the
vlad_ostocentos67in the Vlad settings filevlad_guts/vlad_settings.ymlvlad_os: "centos67"
-
Run
vagrant up -
Once vagrant has finished successfully run
vagrant ssh -
At the command line check the status of the Apache daemon
sudo service httpd status
Expected Result
The Apache daemon is running.
Actual Result
The Apache daemon is not running. This is what I see:
# sudo service httpd status
httpd is stopped
I also get this output from vagrant, which indicates the vlad local_up_services playbook fails.
==> vlad: Running triggers after up...
==> vlad: Executing 'up' services trigger
==> vlad: Executing command "ansible-playbook -i 192.168.100.120, /home/chopper/Projects/vlad/vlad_guts/playbooks/local_up_services.yml --private-key=~/.vagrant.d/insecure_private_key --extra-vars local_ip_address=192.168.100.120"...
==> vlad:
==> vlad: PLAY ***************************************************************************
==> vlad:
==> vlad: TASK [setup] *******************************************************************
==> vlad: fatal: [192.168.100.120]: UNREACHABLE! => {"changed": false, "msg": "SSH Error: data could not be sent to the remote host. Make sure this host can be reached over ssh", "unreachable": true}
==> vlad: to retry, use: --limit @/home/chopper/Projects/vlad/vlad_guts/playbooks/local_up_services.retry
==> vlad:
==> vlad: PLAY RECAP *********************************************************************
==> vlad: 192.168.100.120 : ok=0 changed=0 unreachable=1 failed=0
I've tried running this ansible playbook manually, but it doesn't work, even though I can ssh to the server manually. This works:
ssh -i ~/.vagrant.d/insecure_private_key vagrant@192.168.100.120
Last login: Tue Apr 12 04:22:04 2016 from 10.0.2.2
This fails:
ansible-playbook -i 192.168.100.120, /home/chopper/Projects/vlad/vlad_guts/playbooks/local_up_services.yml --private-key=~/.vagrant.d/insecure_private_key --extra-vars local_ip_address=192.168.100.120
PLAY ***************************************************************************
TASK [setup] *******************************************************************
fatal: [192.168.100.120]: UNREACHABLE! => {"changed": false, "msg": "SSH Error: data could not be sent to the remote host. Make sure this host can be reached over ssh", "unreachable": true}
to retry, use: --limit @/home/chopper/Projects/vlad/vlad_guts/playbooks/local_up_services.retry
PLAY RECAP *********************************************************************
192.168.100.120 : ok=0 changed=0 unreachable=1 failed=0