ansible / ansible.builtin / v2.4.3.0-1 / 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.4.3.0-1) — module
pip
Install with pip install ansible==2.4.3.0.post1
Add or remove domains or subdomains on a Webfaction host. Further documentation at http://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 required: false login_name: description: - The webfaction account to use required: true subdomains: default: null description: - Any subdomains to create. required: false login_password: description: - The webfaction password to use required: true