community / community.general / 0.1.4 / module / webfaction_site Add or remove a website on a Webfaction host Authors: Quentin Stafford-Fraser (@quentinsf)community.general.webfaction_site (0.1.4) — module
Install with ansible-galaxy collection install community.general:==0.1.4
collections: - name: community.general version: 0.1.4
Add or remove a website on a Webfaction host. Further documentation at https://github.com/quentinsf/ansible-webfaction.
- 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}}"
host: description: - The webfaction host on which the site should be created. required: true name: description: - The name of the website required: true https: default: 'no' description: - Whether or not to use HTTPS type: bool state: choices: - present - absent default: present description: - Whether the website should exist site_apps: default: [] description: - A mapping of URLs to apps login_name: description: - The webfaction account to use required: true subdomains: default: [] description: - A list of subdomains associated with this site. login_password: description: - The webfaction password to use required: true