Add examples.

This commit is contained in:
Quentin Stafford-Fraser 2015-05-10 22:07:49 +01:00 committed by Matt Clay
parent 8bd3d72088
commit 6739578742
3 changed files with 40 additions and 0 deletions

View file

@ -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/')

View file

@ -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

View file

@ -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