Add examples.
This commit is contained in:
parent
8bd3d72088
commit
6739578742
3 changed files with 40 additions and 0 deletions
|
@ -63,6 +63,16 @@ options:
|
||||||
required: true
|
required: true
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
EXAMPLES = '''
|
||||||
|
- 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}}
|
||||||
|
'''
|
||||||
|
|
||||||
import xmlrpclib
|
import xmlrpclib
|
||||||
|
|
||||||
webfaction = xmlrpclib.ServerProxy('https://api.webfaction.com/')
|
webfaction = xmlrpclib.ServerProxy('https://api.webfaction.com/')
|
||||||
|
|
|
@ -47,6 +47,26 @@ options:
|
||||||
required: true
|
required: true
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
EXAMPLES = '''
|
||||||
|
- 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}}"
|
||||||
|
|
||||||
|
'''
|
||||||
|
|
||||||
import socket
|
import socket
|
||||||
import xmlrpclib
|
import xmlrpclib
|
||||||
|
|
||||||
|
|
|
@ -45,6 +45,16 @@ options:
|
||||||
required: true
|
required: true
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
EXAMPLES = '''
|
||||||
|
- name: Create a mailbox
|
||||||
|
webfaction_mailbox:
|
||||||
|
mailbox_name="mybox"
|
||||||
|
mailbox_password="myboxpw"
|
||||||
|
state=present
|
||||||
|
login_name={{webfaction_user}}
|
||||||
|
login_password={{webfaction_passwd}}
|
||||||
|
'''
|
||||||
|
|
||||||
import socket
|
import socket
|
||||||
import xmlrpclib
|
import xmlrpclib
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue