Use resource as primary citizen in inventory

This commit is contained in:
Dmitry Shulyak 2015-04-17 12:46:52 +03:00 committed by Evgeniy L
parent 361ddc95b4
commit ab0465195c
6 changed files with 20 additions and 5 deletions

View File

@ -1,9 +1,9 @@
- id: 6176aaa2-d97f-11e4-8dbe-080027c2ffdb
- id: node_1
ip: 10.0.0.2
ssh_user: vagrant
ssh_private_key_path: /vagrant/tmp/keys/ssh_private
- id: cc48cf72-df88-11e4-9f5b-080027c2ffdb
- id: node_2
ip: 10.0.0.3
ssh_user: vagrant
ssh_private_key_path: /vagrant/tmp/keys/ssh_private

View File

@ -1,4 +1,4 @@
id: docker
id: docker_1
type: resource
handler: ansible
version: v1

View File

@ -0,0 +1,13 @@
id: docker_2
type: resource
handler: ansible
version: v1
actions:
run: simple/docker/run.yml
remove: simple/docker/remove.yml
input:
base_image: ubuntu
node:
link: node_2
tags: [service/docker]

View File

@ -2,11 +2,13 @@ id: mariadb
type: resource
handler: ansible
version: v1
actions:
run: simple/mariadb/run.yml
remove: simple/mariadb/remove.yml
wait: simple/mariadb/wait.yml
users: simple/mariadb/users.yml
input:
name: mariadb-test
image: kollaglue/fedora-rdo-mariadb-app

View File

@ -1,4 +1,4 @@
- hosts: [docker]
- hosts: [service/docker]
sudo: yes
tasks:
- shell: apt-get remove -y lxc-docker

View File

@ -1,5 +1,5 @@
- hosts: [docker]
- hosts: [service/docker]
sudo: yes
tasks:
- shell: docker --version