ansible/test/integration/targets/inventory_docker_machine/playbooks/setup.yml
ximon18 2cca9176a7 Added a Docker Machine dynamic inventory plugin (#54946)
* Added my Docker Machine dynamic inventory plugin (from https://github.com/ximon18/ansible-docker-machine-inventory-plugin) to begin the process of proposing it for inclusion in Ansible core. There are no integration tests yet. The docker_swarm inventory plugin has such tests but has some concerning note in its 'aliases' file about disabling docker due to test instability and also I wouldn't know at his point how to get Docker Machine installed on the integration test platform.
2019-08-07 18:14:14 -04:00

11 lines
353 B
YAML

---
- hosts: 127.0.0.1
connection: local
tasks:
- name: Request Docker Machine to use this machine as a generic VM
command: "docker-machine --debug create \
--driver generic \
--generic-ip-address=localhost \
--generic-ssh-key {{ lookup('env', 'HOME') }}/.ssh/id_rsa \
--generic-ssh-user root \
vm"