community / community.general / 3.8.10 / module / webfaction_domain Add or remove domains and subdomains on Webfaction Authors: Quentin Stafford-Fraser (@quentinsf)community.general.webfaction_domain (3.8.10) — module
Install with ansible-galaxy collection install community.general:==3.8.10
collections: - name: community.general version: 3.8.10
Add or remove domains or subdomains on a Webfaction host. Further documentation at https://github.com/quentinsf/ansible-webfaction.
- 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}}"
- name: Delete test domain and any subdomains community.general.webfaction_domain: name: mydomain.com state: absent login_name: "{{webfaction_user}}" login_password: "{{webfaction_passwd}}"
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