ansible / ansible.builtin / v2.5.12 / module / webfaction_db Add or remove a database on Webfaction | "added in version" 2.0 of ansible.builtin" Authors: Quentin Stafford-Fraser (@quentinsf) preview | supported by communityansible.builtin.webfaction_db (v2.5.12) — module
pip
Install with pip install ansible==2.5.12
Add or remove a database on a Webfaction host. Further documentation at http://github.com/quentinsf/ansible-webfaction.
# This will also create a default DB user with the same # name as the database, and the specified password. - name: Create a database webfaction_db: name: "{{webfaction_user}}_db1" password: mytestsql type: mysql login_name: "{{webfaction_user}}" login_password: "{{webfaction_passwd}}" machine: "{{webfaction_machine}}"
name: description: - The name of the database required: true type: choices: - mysql - postgresql description: - The type of database to create. required: true state: choices: - present - absent default: present description: - Whether the database should exist required: false machine: description: - The machine name to use (optional for accounts with only one machine) required: false password: default: None description: - The password for the new database user. required: false login_name: description: - The webfaction account to use required: true login_password: description: - The webfaction password to use required: true