solar/examples/resources/simple/user/remove.yml
2015-05-14 10:56:18 +02:00

13 lines
299 B
YAML

- 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}}'"