ansible / ansible.builtin / v2.7.17 / module / webfaction_domain Add or remove domains and subdomains on Webfaction | "added in version" 2.0 of ansible.builtin" Authors: Quentin Stafford-Fraser (@quentinsf) preview | supported by communityansible.builtin.webfaction_domain (v2.7.17) — module
pip
Install with pip install ansible==2.7.17
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