Add mariadb_db resource back
This commit is contained in:
parent
05b9819f1f
commit
c33565c416
11
resources/mariadb_db/actions/remove.yml
Normal file
11
resources/mariadb_db/actions/remove.yml
Normal file
@ -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
|
11
resources/mariadb_db/actions/run.yml
Normal file
11
resources/mariadb_db/actions/run.yml
Normal file
@ -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
|
28
resources/mariadb_db/meta.yaml
Normal file
28
resources/mariadb_db/meta.yaml
Normal file
@ -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:
|
Loading…
Reference in New Issue
Block a user