ansible.builtin.webfaction_domain (v2.9.27) — module

Add or remove domains and subdomains on Webfaction

| "added in version" 2.0 of ansible.builtin"

Authors: Quentin Stafford-Fraser (@quentinsf)

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.9.27

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
    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
    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

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

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

subdomains:
    default: []
    description:
    - Any subdomains to create.

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