ganto / ansible-vagrant_debops Goto Github PK
View Code? Open in Web Editor NEWSetup DebOps machine via Vagrant Ansible provisioner
License: GNU General Public License v3.0
Setup DebOps machine via Vagrant Ansible provisioner
License: GNU General Public License v3.0
#3 added vagrant_debops__inventory_vars
including a default configuration which uses ansible_env.SSH_CLIENT
. In some occasions it may happen, that the following error appears when running vagrant provision
:
TASK [ganto.vagrant_debops : Upload Ansible inventory] *************************
fatal: [default]: FAILED! => {
"changed": false,
"failed": true,
"msg": "AnsibleUndefinedVariable: {
'ferm__ansible_controllers': [
'{{ ansible_env.SSH_CLIENT.split(\" \")[0] }}/32'
]
'core__ansible_controllers': [
'{{ ansible_env.SSH_CLIENT.split(\" \")[0] }}/32'
],
'tcpwrappers__ansible_controllers': [
'{{ ansible_env.SSH_CLIENT.split(\" \")[0] }}/32'
]
}: 'dict object' has no attribute 'SSH_CLIENT'"
}
When running debops
or an individual DebOps role e.g. depending on debops.tcpwrappers
the setup is not aware that you connect from outside to the Ansible host and therefore doesn't automatically allow SSH connections from your Vagrant host.
If you restart the box, you might end up with something like:
$ vagrant up
Bringing machine 'default' up with 'lxc' provider...
==> default: Checking if box 'oxid_esales/trusty64-lxc' is up to date...
==> default: Setting up mount entries for shared folders...
default: /vagrant => /home/ganto/vagrant/vagrant-projects/debops-trusty64-lxc
==> default: Starting container...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 192.168.123.163:22
default: SSH username: vagrant
default: SSH auth method: private key
default: Warning: Connection reset. Retrying...
default: Warning: Connection reset. Retrying...
default: Warning: Connection reset. Retrying...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.