oravirt / vagrant-vbox-rac

Vagrant config to automatically build one or more Oracle RAC clusters
14 stars 8 forks source link

Vagrant has automatically selected the compatibility mode '2.0' #1

Closed pnumboori closed 5 years ago

pnumboori commented 5 years ago

==> racnode-dc1-1: Running provisioner: ansible_local... Vagrant has automatically selected the compatibility mode '2.0' according to the Ansible version installed (2.6.2).

Alternatively, the compatibility mode can be specified in your Vagrantfile: https://www.vagrantup.com/docs/provisioning/ansible_common.html#compatibility_mode

oravirt commented 5 years ago

Not sure what you mean? Do you have a problem with the compatibility?

pnumboori commented 5 years ago

Yes, provisioning is failing with error, my environment is Vagrant 2.1.2 and ansible 2.6.2. I dont know how and where to set the compatibilty. Thanks for checking in on issues.

oravirt commented 5 years ago

Ok - then show me the actual error. That’s not an error, it’s just information.

pnumboori commented 5 years ago

oot@praveen-HP-EliteBook-8460p:/media/praveen/Seagate Backup Plus Drive/18/vagrant-vbox-rac-master# vagrant provision ==> racnode-dc1-1: Running provisioner: ansible_local... Vagrant has automatically selected the compatibility mode '2.0' according to the Ansible version installed (2.6.2).

Alternatively, the compatibility mode can be specified in your Vagrantfile: https://www.vagrantup.com/docs/provisioning/ansible_common.html#compatibility_mode

racnode-dc1-1: Running ansible-playbook...

[WARNING] Ansible is in a world writable directory (/vagrant), ignoring it as an ansible.cfg source.

PLAY [all] *****

TASK [Gathering Facts] ***** ok: [racnode-dc1-2] ok: [racnode-dc1-1]

TASK [init : Install packages] ***** ok: [racnode-dc1-1] => (item=ntp) ok: [racnode-dc1-2] => (item=ntp) ok: [racnode-dc1-1] => (item=dnsmasq) ok: [racnode-dc1-2] => (item=dnsmasq)

TASK [init : Make sure ntp is running] ***** [DEPRECATION WARNING]: state=running is deprecated. Please use state=started. This feature will be removed in version 2.7. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. [DEPRECATION WARNING]: state=running is deprecated. Please use state=started. This feature will be removed in version 2.7. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ok: [racnode-dc1-1] ok: [racnode-dc1-2]

TASK [init : Generate /etc/hosts] ** ok: [racnode-dc1-1] ok: [racnode-dc1-2]

TASK [init : Generate /etc/resolv.conf] **** ok: [racnode-dc1-1] ok: [racnode-dc1-2]

TASK [init : Generate dnsmasq config] ** ok: [racnode-dc1-1] ok: [racnode-dc1-2]

TASK [init : Start and enable dnsmasq] ***** ok: [racnode-dc1-1] ok: [racnode-dc1-2]

PLAY RECAP ***** racnode-dc1-1 : ok=7 changed=0 unreachable=0 failed=0
racnode-dc1-2 : ok=7 changed=0 unreachable=0 failed=0

oravirt commented 5 years ago

You need to set the environment variable setup to true (it’s in the documentation) i.e setup=true vagrant provision

pnumboori commented 5 years ago

Thanks, I missed that step, your documentation is pefect, my fault. Thanks again.its running now.

oravirt commented 5 years ago

Awesome! Happy to help