mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
webfaction modules: fix broken import (#35024)
* webfaction_app: fix broken import * doc: use formatting functions * webaction_db: fix broken import * webfaction_domain: fix broken import * webfaction_mailbox: fix broken import * webaction_site: fix broken import * webfaction modules: fix doc
This commit is contained in:
parent
a7371d4998
commit
bc6b96d42e
7 changed files with 20 additions and 31 deletions
|
@ -25,7 +25,7 @@ DOCUMENTATION = '''
|
||||||
module: webfaction_app
|
module: webfaction_app
|
||||||
short_description: Add or remove applications on a Webfaction host
|
short_description: Add or remove applications on a Webfaction host
|
||||||
description:
|
description:
|
||||||
- Add or remove applications on a Webfaction host. Further documentation at http://github.com/quentinsf/ansible-webfaction.
|
- Add or remove applications on a Webfaction host. Further documentation at U(http://github.com/quentinsf/ansible-webfaction).
|
||||||
author: Quentin Stafford-Fraser (@quentinsf)
|
author: Quentin Stafford-Fraser (@quentinsf)
|
||||||
version_added: "2.0"
|
version_added: "2.0"
|
||||||
notes:
|
notes:
|
||||||
|
@ -50,12 +50,12 @@ options:
|
||||||
|
|
||||||
type:
|
type:
|
||||||
description:
|
description:
|
||||||
- The type of application to create. See the Webfaction docs at http://docs.webfaction.com/xmlrpc-api/apps.html for a list.
|
- The type of application to create. See the Webfaction docs at U(http://docs.webfaction.com/xmlrpc-api/apps.html) for a list.
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
autostart:
|
autostart:
|
||||||
description:
|
description:
|
||||||
- Whether the app should restart with an autostart.cgi script
|
- Whether the app should restart with an C(autostart.cgi) script
|
||||||
type: bool
|
type: bool
|
||||||
default: "no"
|
default: "no"
|
||||||
|
|
||||||
|
@ -63,7 +63,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- Any extra parameters required by the app
|
- Any extra parameters required by the app
|
||||||
required: false
|
required: false
|
||||||
default: null
|
default: ''
|
||||||
|
|
||||||
port_open:
|
port_open:
|
||||||
description:
|
description:
|
||||||
|
@ -84,7 +84,7 @@ options:
|
||||||
machine:
|
machine:
|
||||||
description:
|
description:
|
||||||
- The machine name to use (optional for accounts with only one machine)
|
- The machine name to use (optional for accounts with only one machine)
|
||||||
required: false
|
default: false
|
||||||
|
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
@ -99,12 +99,11 @@ EXAMPLES = '''
|
||||||
machine: "{{webfaction_machine}}"
|
machine: "{{webfaction_machine}}"
|
||||||
'''
|
'''
|
||||||
|
|
||||||
import xmlrpclib
|
|
||||||
|
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
|
from ansible.module_utils.six.moves import xmlrpc_client
|
||||||
|
|
||||||
|
|
||||||
webfaction = xmlrpclib.ServerProxy('https://api.webfaction.com/')
|
webfaction = xmlrpc_client.ServerProxy('https://api.webfaction.com/')
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
|
@ -55,7 +55,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- The password for the new database user.
|
- The password for the new database user.
|
||||||
required: false
|
required: false
|
||||||
default: None
|
default: null
|
||||||
|
|
||||||
login_name:
|
login_name:
|
||||||
description:
|
description:
|
||||||
|
@ -70,7 +70,7 @@ options:
|
||||||
machine:
|
machine:
|
||||||
description:
|
description:
|
||||||
- The machine name to use (optional for accounts with only one machine)
|
- The machine name to use (optional for accounts with only one machine)
|
||||||
required: false
|
default: false
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
|
@ -91,12 +91,11 @@ EXAMPLES = '''
|
||||||
|
|
||||||
'''
|
'''
|
||||||
|
|
||||||
import xmlrpclib
|
|
||||||
|
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
|
from ansible.module_utils.six.moves import xmlrpc_client
|
||||||
|
|
||||||
|
|
||||||
webfaction = xmlrpclib.ServerProxy('https://api.webfaction.com/')
|
webfaction = xmlrpc_client.ServerProxy('https://api.webfaction.com/')
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
|
@ -49,7 +49,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- Any subdomains to create.
|
- Any subdomains to create.
|
||||||
required: false
|
required: false
|
||||||
default: null
|
default: []
|
||||||
|
|
||||||
login_name:
|
login_name:
|
||||||
description:
|
description:
|
||||||
|
@ -82,12 +82,11 @@ EXAMPLES = '''
|
||||||
|
|
||||||
'''
|
'''
|
||||||
|
|
||||||
import xmlrpclib
|
|
||||||
|
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
|
from ansible.module_utils.six.moves import xmlrpc_client
|
||||||
|
|
||||||
|
|
||||||
webfaction = xmlrpclib.ServerProxy('https://api.webfaction.com/')
|
webfaction = xmlrpc_client.ServerProxy('https://api.webfaction.com/')
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
|
@ -69,12 +69,12 @@ EXAMPLES = '''
|
||||||
login_password={{webfaction_passwd}}
|
login_password={{webfaction_passwd}}
|
||||||
'''
|
'''
|
||||||
|
|
||||||
import xmlrpclib
|
|
||||||
|
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
|
from ansible.module_utils.six.moves import xmlrpc_client
|
||||||
|
|
||||||
|
|
||||||
webfaction = xmlrpclib.ServerProxy('https://api.webfaction.com/')
|
webfaction = xmlrpc_client.ServerProxy('https://api.webfaction.com/')
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
|
@ -60,12 +60,13 @@ options:
|
||||||
description:
|
description:
|
||||||
- A mapping of URLs to apps
|
- A mapping of URLs to apps
|
||||||
required: false
|
required: false
|
||||||
|
default: []
|
||||||
|
|
||||||
subdomains:
|
subdomains:
|
||||||
description:
|
description:
|
||||||
- A list of subdomains associated with this site.
|
- A list of subdomains associated with this site.
|
||||||
required: false
|
required: false
|
||||||
default: null
|
default: []
|
||||||
|
|
||||||
login_name:
|
login_name:
|
||||||
description:
|
description:
|
||||||
|
@ -94,12 +95,12 @@ EXAMPLES = '''
|
||||||
'''
|
'''
|
||||||
|
|
||||||
import socket
|
import socket
|
||||||
import xmlrpclib
|
|
||||||
|
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
|
from ansible.module_utils.six.moves import xmlrpc_client
|
||||||
|
|
||||||
|
|
||||||
webfaction = xmlrpclib.ServerProxy('https://api.webfaction.com/')
|
webfaction = xmlrpc_client.ServerProxy('https://api.webfaction.com/')
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
|
@ -1,8 +1,4 @@
|
||||||
lib/ansible/modules/cloud/azure/azure_rm_storageaccount.py
|
lib/ansible/modules/cloud/azure/azure_rm_storageaccount.py
|
||||||
lib/ansible/modules/cloud/webfaction/webfaction_app.py
|
|
||||||
lib/ansible/modules/cloud/webfaction/webfaction_db.py
|
|
||||||
lib/ansible/modules/cloud/webfaction/webfaction_domain.py
|
|
||||||
lib/ansible/modules/cloud/webfaction/webfaction_mailbox.py
|
|
||||||
lib/ansible/modules/cloud/webfaction/webfaction_site.py
|
lib/ansible/modules/cloud/webfaction/webfaction_site.py
|
||||||
lib/ansible/modules/clustering/k8s/k8s_raw.py
|
lib/ansible/modules/clustering/k8s/k8s_raw.py
|
||||||
lib/ansible/modules/clustering/k8s/k8s_scale.py
|
lib/ansible/modules/clustering/k8s/k8s_scale.py
|
||||||
|
|
|
@ -867,11 +867,6 @@ lib/ansible/modules/cloud/vultr/vr_user.py E322
|
||||||
lib/ansible/modules/cloud/vultr/vr_user.py E324
|
lib/ansible/modules/cloud/vultr/vr_user.py E324
|
||||||
lib/ansible/modules/cloud/vultr/vr_user.py E325
|
lib/ansible/modules/cloud/vultr/vr_user.py E325
|
||||||
lib/ansible/modules/cloud/vultr/vr_user.py E326
|
lib/ansible/modules/cloud/vultr/vr_user.py E326
|
||||||
lib/ansible/modules/cloud/webfaction/webfaction_app.py E321
|
|
||||||
lib/ansible/modules/cloud/webfaction/webfaction_db.py E321
|
|
||||||
lib/ansible/modules/cloud/webfaction/webfaction_domain.py E321
|
|
||||||
lib/ansible/modules/cloud/webfaction/webfaction_mailbox.py E321
|
|
||||||
lib/ansible/modules/cloud/webfaction/webfaction_site.py E321
|
|
||||||
lib/ansible/modules/clustering/consul.py E322
|
lib/ansible/modules/clustering/consul.py E322
|
||||||
lib/ansible/modules/clustering/consul.py E324
|
lib/ansible/modules/clustering/consul.py E324
|
||||||
lib/ansible/modules/clustering/consul.py E325
|
lib/ansible/modules/clustering/consul.py E325
|
||||||
|
|
Loading…
Reference in a new issue