From c33565c4167636bc1640b7cba5daa0772a8c854b Mon Sep 17 00:00:00 2001 From: Evgeniy L Date: Wed, 3 Jun 2015 10:43:39 +0200 Subject: [PATCH] Add mariadb_db resource back --- resources/mariadb_db/actions/remove.yml | 11 ++++++++++ resources/mariadb_db/actions/run.yml | 11 ++++++++++ resources/mariadb_db/meta.yaml | 28 +++++++++++++++++++++++++ 3 files changed, 50 insertions(+) create mode 100644 resources/mariadb_db/actions/remove.yml create mode 100644 resources/mariadb_db/actions/run.yml create mode 100644 resources/mariadb_db/meta.yaml diff --git a/resources/mariadb_db/actions/remove.yml b/resources/mariadb_db/actions/remove.yml new file mode 100644 index 00000000..594061a4 --- /dev/null +++ b/resources/mariadb_db/actions/remove.yml @@ -0,0 +1,11 @@ +- hosts: [{{ ip }}] + sudo: yes + tasks: + - name: mariadb db + mysql_db: + name: {{db_name}} + state: absent + login_user: root + login_password: {{login_password}} + login_port: {{login_port}} + login_host: 127.0.0.1 diff --git a/resources/mariadb_db/actions/run.yml b/resources/mariadb_db/actions/run.yml new file mode 100644 index 00000000..4b315b9b --- /dev/null +++ b/resources/mariadb_db/actions/run.yml @@ -0,0 +1,11 @@ +- hosts: [{{ ip }}] + sudo: yes + tasks: + - name: mariadb db + mysql_db: + name: {{ db_name }} + state: present + login_user: root + login_password: {{ login_password }} + login_port: {{ login_port }} + login_host: 127.0.0.1 diff --git a/resources/mariadb_db/meta.yaml b/resources/mariadb_db/meta.yaml new file mode 100644 index 00000000..285aafdb --- /dev/null +++ b/resources/mariadb_db/meta.yaml @@ -0,0 +1,28 @@ +id: mariadb_db +handler: ansible +version: 1.0.0 +actions: + run: run.yml + remove: remove.yml +input: + db_name: + schema: str! + value: + login_user: + schema: str! + value: + login_password: + schema: str! + value: + login_port: + schema: int! + value: + ip: + schema: str! + value: + ssh_key: + schema: str! + value: + ssh_user: + schema: str! + value: