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

Add or remove a website on a Webfaction host

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 website 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 website
    community.general.webfaction_site:
      name: testsite1
      state: present
      host: myhost.webfaction.com
      subdomains:
        - 'testsite1.my_domain.org'
      site_apps:
        - ['testapp1', '/']
      https: false
      login_name: "{{webfaction_user}}"
      login_password: "{{webfaction_passwd}}"

Inputs

    
host:
    description:
    - The webfaction host on which the site should be created.
    required: true
    type: str

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

https:
    default: false
    description:
    - Whether or not to use HTTPS
    type: bool

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

site_apps:
    default: []
    description:
    - A mapping of URLs to apps
    elements: list
    type: list

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

subdomains:
    default: []
    description:
    - A list of subdomains associated with this site.
    elements: str
    type: list

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