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_domain (8.5.0) — module

Add or remove domains and subdomains 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 domains or subdomains 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.
  - name: Create a test domain
    community.general.webfaction_domain:
      name: mydomain.com
      state: present
      subdomains:
       - www
       - blog
      login_name: "{{webfaction_user}}"
      login_password: "{{webfaction_passwd}}"
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
  - name: Delete test domain and any subdomains
    community.general.webfaction_domain:
      name: mydomain.com
      state: absent
      login_name: "{{webfaction_user}}"
      login_password: "{{webfaction_passwd}}"

Inputs

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

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

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

subdomains:
    default: []
    description:
    - Any subdomains to create.
    elements: str
    type: list

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