Skip to content

Commit

Permalink
Add examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
quentinsf authored and mattclay committed Dec 8, 2016
1 parent 8bd3d72 commit 6739578
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/ansible/modules/extras/cloud/webfaction/webfaction_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,16 @@
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

webfaction = xmlrpclib.ServerProxy('https://api.webfaction.com/')
Expand Down
20 changes: 20 additions & 0 deletions lib/ansible/modules/extras/cloud/webfaction/webfaction_domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,26 @@
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 xmlrpclib

Expand Down
10 changes: 10 additions & 0 deletions lib/ansible/modules/extras/cloud/webfaction/webfaction_mailbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,16 @@
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 xmlrpclib

Expand Down

0 comments on commit 6739578

Please sign in to comment.