Use resource as primary citizen in inventory
This commit is contained in:
parent
361ddc95b4
commit
ab0465195c
@ -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
|
||||
|
@ -1,4 +1,4 @@
|
||||
id: docker
|
||||
id: docker_1
|
||||
type: resource
|
||||
handler: ansible
|
||||
version: v1
|
||||
|
13
examples/resources/docker2.yml
Normal file
13
examples/resources/docker2.yml
Normal 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]
|
||||
|
@ -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
|
||||
|
@ -1,4 +1,4 @@
|
||||
- hosts: [docker]
|
||||
- hosts: [service/docker]
|
||||
sudo: yes
|
||||
tasks:
|
||||
- shell: apt-get remove -y lxc-docker
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
- hosts: [docker]
|
||||
- hosts: [service/docker]
|
||||
sudo: yes
|
||||
tasks:
|
||||
- shell: docker --version
|
||||
|
Loading…
x
Reference in New Issue
Block a user