Deprecated

Removed in 9.0.0

i

Reason:the endpoints this module relies on do not exist any more and do not resolve to IPs in DNS. | Alternative:no known alternative at this point

community.general.webfaction_db (8.5.0) — module

Add or remove a database on Webfaction

Authors: Quentin Stafford-Fraser (@quentinsf)

Install collection

Install with ansible-galaxy collection install community.general:==8.5.0


Add to requirements.yml

  collections:
    - name: community.general
      version: 8.5.0

Description

Add or remove a database on a Webfaction host. Further documentation at https://github.com/quentinsf/ansible-webfaction.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
  # This will also create a default DB user with the same
  # name as the database, and the specified password.

  - name: Create a database
    community.general.webfaction_db:
      name: "{{webfaction_user}}_db1"
      password: mytestsql
      type: mysql
      login_name: "{{webfaction_user}}"
      login_password: "{{webfaction_passwd}}"
      machine: "{{webfaction_machine}}"

Inputs

    
name:
    description:
    - The name of the database
    required: true
    type: str

type:
    choices:
    - mysql
    - postgresql
    description:
    - The type of database to create.
    required: true
    type: str

state:
    choices:
    - present
    - absent
    default: present
    description:
    - Whether the database should exist
    type: str

machine:
    description:
    - The machine name to use (optional for accounts with only one machine)
    type: str

password:
    description:
    - The password for the new database user.
    type: str

login_name:
    description:
    - The webfaction account to use
    required: true
    type: str

login_password:
    description:
    - The webfaction password to use
    required: true
    type: str