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