community / community.general / 0.1.4 / module / webfaction_app Add or remove applications on a Webfaction host Authors: Quentin Stafford-Fraser (@quentinsf)community.general.webfaction_app (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 applications on a Webfaction host. Further documentation at U(https://github.com/quentinsf/ansible-webfaction).
- name: Create a test app webfaction_app: name: "my_wsgi_app1" state: present type: mod_wsgi35-python27 login_name: "{{webfaction_user}}" login_password: "{{webfaction_passwd}}" machine: "{{webfaction_machine}}"
name: description: - The name of the application required: true type: description: - The type of application to create. See the Webfaction docs at U(https://docs.webfaction.com/xmlrpc-api/apps.html) for a list. required: true state: choices: - present - absent default: present description: - Whether the application should exist machine: description: - The machine name to use (optional for accounts with only one machine) autostart: default: 'no' description: - Whether the app should restart with an C(autostart.cgi) script type: bool port_open: default: 'no' description: - IF the port should be opened type: bool extra_info: default: '' description: - Any extra parameters required by the app login_name: description: - The webfaction account to use required: true login_password: description: - The webfaction password to use required: true