Restored removed files after the latest merge

This commit is contained in:
Evgeniy L 2015-05-14 10:49:00 +02:00
parent 2a500c6fdc
commit 7fb47a303f
5 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,17 @@
- hosts: [service/mariadb]
sudo: yes
tasks:
- shell: echo {{name}} >> /var/lib/solar/containers_list
- shell: docker ps | grep -q {{name}}
ignore_errors: true
register: is_running
- shell: docker run \
-d \
--net="host" \
--privileged \
--name {{name}} \
-e "MARIADB_ROOT_PASSWORD={{root_password}}" \
-e "BIND_ADDRESS={{bind_ip}}" \
{{image}}
when: is_running|failed

View File

@ -0,0 +1,6 @@
- hosts: [rabbitmq]
sudo: yes
tasks:
- shell: docker run --net="host" --privileged \
--name {{ rabbitmq.name }} -d {{ rabbitmq.image }}

View File

@ -0,0 +1,6 @@
- hosts: [rabbitmq]
sudo: yes
tasks:
- shell: docker run --net="host" --privileged \
--name {{ rabbitmq.name }} -d {{ rabbitmq.image }}

View File

@ -0,0 +1,12 @@
- hosts: [rabbitmq]
sudo: yes
tasks:
- shell: docker exec -i {{rabbitmq.name}} /usr/sbin/rabbitmqctl delete_user {{user.name}}
run_once: true
- hosts: [mariadb]
sudo: yes
tasks:
- command: docker exec -t {{mariadb.name}} \
mysql -uroot -e "DROP USER '{{user.name}}'"

View File

@ -0,0 +1,6 @@
- hosts: [rabbitmq]
sudo: yes
tasks:
- command: docker exec -t {{rabbitmq.name}} /usr/sbin/rabbitmqctl add_user {{user.name}} {{user.password}}
run_once: true