ansible.builtin.webfaction_site (v2.3.3.0-1) — module

Add or remove a website on a Webfaction host

| "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.3.3.0.post1

Description

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

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
  - name: create website
    webfaction_site:
      name: testsite1
      state: present
      host: myhost.webfaction.com
      subdomains:
        - 'testsite1.my_domain.org'
      site_apps:
        - ['testapp1', '/']
      https: no
      login_name: "{{webfaction_user}}"
      login_password: "{{webfaction_passwd}}"

Inputs

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

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

https:
    choices:
    - true
    - false
    default: 'false'
    description:
    - Whether or not to use HTTPS
    required: false

state:
    choices:
    - present
    - absent
    default: present
    description:
    - Whether the website should exist
    required: false

site_apps:
    description:
    - A mapping of URLs to apps
    required: false

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

subdomains:
    default: null
    description:
    - A list of subdomains associated with this site.
    required: false

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