Restored removed files after the latest merge
This commit is contained in:
parent
2a500c6fdc
commit
7fb47a303f
17
examples/resources/simple/mariadb/run.yml
Normal file
17
examples/resources/simple/mariadb/run.yml
Normal 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
|
6
examples/resources/simple/rabbitmq/remove.yml
Normal file
6
examples/resources/simple/rabbitmq/remove.yml
Normal file
@ -0,0 +1,6 @@
|
||||
|
||||
- hosts: [rabbitmq]
|
||||
sudo: yes
|
||||
tasks:
|
||||
- shell: docker run --net="host" --privileged \
|
||||
--name {{ rabbitmq.name }} -d {{ rabbitmq.image }}
|
6
examples/resources/simple/rabbitmq/run.yml
Normal file
6
examples/resources/simple/rabbitmq/run.yml
Normal file
@ -0,0 +1,6 @@
|
||||
|
||||
- hosts: [rabbitmq]
|
||||
sudo: yes
|
||||
tasks:
|
||||
- shell: docker run --net="host" --privileged \
|
||||
--name {{ rabbitmq.name }} -d {{ rabbitmq.image }}
|
12
examples/resources/simple/user/remove.yml
Normal file
12
examples/resources/simple/user/remove.yml
Normal 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}}'"
|
6
examples/resources/simple/user/run.yml
Normal file
6
examples/resources/simple/user/run.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user