community.general.webfaction_domain (1.3.14) — module

Add or remove domains and subdomains on Webfaction

Authors: Quentin Stafford-Fraser (@quentinsf)

Install collection

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


Add to requirements.yml

  collections:
    - name: community.general
      version: 1.3.14

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