Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
ad837709
Commit
ad837709
authored
Dec 02, 2013
by
James Tanner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Addresses #5023 Fix import comments
parent
6000d636
Hide whitespace changes
Inline
Side-by-side
Showing
94 changed files
with
94 additions
and
94 deletions
+94
-94
library/cloud/cloudformation
+1
-1
library/cloud/digital_ocean
+1
-1
library/cloud/docker
+1
-1
library/cloud/gc_storage
+1
-1
library/cloud/gce
+1
-1
library/cloud/gce_lb
+1
-1
library/cloud/gce_net
+1
-1
library/cloud/gce_pd
+1
-1
library/cloud/keystone_user
+1
-1
library/cloud/linode
+1
-1
library/cloud/rds
+1
-1
library/cloud/virt
+1
-1
library/database/mongodb_user
+1
-1
library/database/mysql_db
+1
-1
library/database/mysql_replication
+1
-1
library/database/mysql_user
+1
-1
library/database/mysql_variables
+1
-1
library/database/postgresql_db
+1
-1
library/database/postgresql_privs
+1
-1
library/database/postgresql_user
+1
-1
library/database/redis
+1
-1
library/database/riak
+1
-1
library/files/acl
+1
-1
library/files/assemble
+1
-1
library/files/copy
+1
-1
library/files/file
+1
-1
library/files/ini_file
+1
-1
library/files/lineinfile
+1
-1
library/files/stat
+1
-1
library/files/unarchive
+1
-1
library/files/xattr
+1
-1
library/internal/async_status
+1
-1
library/messaging/rabbitmq_parameter
+1
-1
library/messaging/rabbitmq_plugin
+1
-1
library/messaging/rabbitmq_user
+1
-1
library/messaging/rabbitmq_vhost
+1
-1
library/monitoring/airbrake_deployment
+1
-1
library/monitoring/datadog_event
+1
-1
library/monitoring/monit
+1
-1
library/monitoring/nagios
+1
-1
library/monitoring/newrelic_deployment
+1
-1
library/net_infrastructure/dnsmadeeasy
+1
-1
library/net_infrastructure/netscaler
+1
-1
library/net_infrastructure/openvswitch_bridge
+1
-1
library/net_infrastructure/openvswitch_port
+1
-1
library/network/get_url
+1
-1
library/network/slurp
+1
-1
library/network/uri
+1
-1
library/notification/campfire
+1
-1
library/notification/flowdock
+1
-1
library/notification/grove
+1
-1
library/notification/hipchat
+1
-1
library/notification/irc
+1
-1
library/notification/jabber
+1
-1
library/notification/mail
+1
-1
library/notification/mqtt
+1
-1
library/notification/osx_say
+1
-1
library/packaging/apt
+1
-1
library/packaging/apt_repository
+1
-1
library/packaging/easy_install
+1
-1
library/packaging/homebrew
+1
-1
library/packaging/macports
+1
-1
library/packaging/npm
+1
-1
library/packaging/openbsd_pkg
+1
-1
library/packaging/opkg
+1
-1
library/packaging/pacman
+1
-1
library/packaging/pip
+1
-1
library/packaging/pkgin
+1
-1
library/packaging/pkgng
+1
-1
library/packaging/portinstall
+1
-1
library/packaging/swdepot
+1
-1
library/packaging/urpmi
+1
-1
library/packaging/yum
+1
-1
library/packaging/zypper
+1
-1
library/packaging/zypper_repository
+1
-1
library/system/authorized_key
+1
-1
library/system/facter
+1
-1
library/system/filesystem
+1
-1
library/system/kernel_blacklist
+1
-1
library/system/lvg
+1
-1
library/system/lvol
+1
-1
library/system/modprobe
+1
-1
library/system/mount
+1
-1
library/system/ohai
+1
-1
library/system/open_iscsi
+1
-1
library/system/setup
+1
-1
library/system/sysctl
+1
-1
library/utilities/accelerate
+1
-1
library/utilities/fireball
+1
-1
library/utilities/wait_for
+1
-1
library/web_infrastructure/django_manage
+1
-1
library/web_infrastructure/htpasswd
+1
-1
library/web_infrastructure/jboss
+1
-1
library/web_infrastructure/supervisorctl
+1
-1
No files found.
library/cloud/cloudformation
View file @
ad837709
...
...
@@ -293,7 +293,7 @@ def main():
module
.
exit_json
(
**
result
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/cloud/digital_ocean
View file @
ad837709
...
...
@@ -419,7 +419,7 @@ def main():
except
(
DoError
,
Exception
)
as
e
:
module
.
fail_json
(
msg
=
str
(
e
))
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/cloud/docker
View file @
ad837709
...
...
@@ -479,7 +479,7 @@ def main():
changed
=
manager
.
has_changed
()
module
.
exit_json
(
failed
=
True
,
changed
=
changed
,
msg
=
repr
(
e
))
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/cloud/gc_storage
View file @
ad837709
...
...
@@ -413,7 +413,7 @@ def main():
module
.
fail_json
(
msg
=
"Bucket and Object parameters must be set"
,
failed
=
True
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/cloud/gce
View file @
ad837709
...
...
@@ -416,7 +416,7 @@ def main():
print
json
.
dumps
(
json_output
)
sys
.
exit
(
0
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/cloud/gce_lb
View file @
ad837709
...
...
@@ -327,7 +327,7 @@ def main():
print
json
.
dumps
(
json_output
)
sys
.
exit
(
0
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/cloud/gce_net
View file @
ad837709
...
...
@@ -267,7 +267,7 @@ def main():
print
json
.
dumps
(
json_output
)
sys
.
exit
(
0
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/cloud/gce_pd
View file @
ad837709
...
...
@@ -249,7 +249,7 @@ def main():
print
json
.
dumps
(
json_output
)
sys
.
exit
(
0
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/cloud/keystone_user
View file @
ad837709
...
...
@@ -385,7 +385,7 @@ def dispatch(keystone, user=None, password=None, tenant=None,
return
dict
(
changed
=
changed
,
id
=
id
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
if
__name__
==
'__main__'
:
main
()
library/cloud/linode
View file @
ad837709
...
...
@@ -482,7 +482,7 @@ def main():
linodeServers
(
module
,
api
,
state
,
name
,
plan
,
distribution
,
datacenter
,
linode_id
,
payment_term
,
password
,
ssh_pub_key
,
swap
,
wait
,
wait_timeout
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/cloud/rds
View file @
ad837709
...
...
@@ -533,7 +533,7 @@ def main():
module
.
exit_json
(
changed
=
True
,
instance
=
d
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/cloud/virt
View file @
ad837709
...
...
@@ -477,6 +477,6 @@ def main():
module
.
exit_json
(
**
result
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/database/mongodb_user
View file @
ad837709
...
...
@@ -213,6 +213,6 @@ def main():
module
.
exit_json
(
changed
=
True
,
user
=
user
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/database/mysql_db
View file @
ad837709
...
...
@@ -301,6 +301,6 @@ def main():
module
.
exit_json
(
changed
=
changed
,
db
=
db
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/database/mysql_replication
View file @
ad837709
...
...
@@ -363,6 +363,6 @@ def main():
else
:
module
.
exit_json
(
msg
=
"Slave already stopped"
,
changed
=
False
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/database/mysql_user
View file @
ad837709
...
...
@@ -461,6 +461,6 @@ def main():
changed
=
False
module
.
exit_json
(
changed
=
changed
,
user
=
user
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/database/mysql_variables
View file @
ad837709
...
...
@@ -211,6 +211,6 @@ def main():
else
:
module
.
fail_json
(
msg
=
result
,
changed
=
False
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/database/postgresql_db
View file @
ad837709
...
...
@@ -269,6 +269,6 @@ def main():
module
.
exit_json
(
changed
=
changed
,
db
=
db
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/database/postgresql_privs
View file @
ad837709
...
...
@@ -607,6 +607,6 @@ def main():
module
.
exit_json
(
changed
=
changed
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible
.
module_utils
.
basic
import
*
main
()
library/database/postgresql_user
View file @
ad837709
...
...
@@ -481,6 +481,6 @@ def main():
kw
[
'changed'
]
=
changed
module
.
exit_json
(
**
kw
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/database/redis
View file @
ad837709
...
...
@@ -276,6 +276,6 @@ def main():
else
:
module
.
fail_json
(
msg
=
'A valid command must be provided'
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/database/riak
View file @
ad837709
...
...
@@ -249,7 +249,7 @@ def main():
module
.
exit_json
(
**
result
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/files/acl
View file @
ad837709
...
...
@@ -191,7 +191,7 @@ def main():
msg
=
"
%
s.
%
d entries changed"
%
(
msg
,
changes
)
module
.
exit_json
(
changed
=
changed
,
msg
=
msg
,
acl
=
currentacl
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/files/assemble
View file @
ad837709
...
...
@@ -173,7 +173,7 @@ def main():
# Mission complete
module
.
exit_json
(
src
=
src
,
dest
=
dest
,
md5sum
=
destmd5
,
changed
=
changed
,
msg
=
"OK"
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
...
...
library/files/copy
View file @
ad837709
...
...
@@ -184,6 +184,6 @@ def main():
module
.
exit_json
(
**
res_args
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/files/file
View file @
ad837709
...
...
@@ -349,7 +349,7 @@ def main():
else
:
module
.
fail_json
(
path
=
path
,
msg
=
'unexpected position reached'
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/files/ini_file
View file @
ad837709
...
...
@@ -184,6 +184,6 @@ def main():
# Mission complete
module
.
exit_json
(
dest
=
dest
,
changed
=
changed
,
msg
=
"OK"
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/files/lineinfile
View file @
ad837709
...
...
@@ -356,7 +356,7 @@ def main():
absent
(
module
,
dest
,
params
[
'regexp'
],
params
.
get
(
'line'
,
None
),
backup
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/files/stat
View file @
ad837709
...
...
@@ -133,7 +133,7 @@ def main():
module
.
exit_json
(
changed
=
False
,
stat
=
d
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/files/unarchive
View file @
ad837709
...
...
@@ -194,6 +194,6 @@ def main():
module
.
exit_json
(
**
res_args
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/files/xattr
View file @
ad837709
...
...
@@ -200,7 +200,7 @@ def main():
module
.
exit_json
(
changed
=
changed
,
msg
=
msg
,
xattr
=
res
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/internal/async_status
View file @
ad837709
...
...
@@ -94,6 +94,6 @@ def main():
module
.
exit_json
(
**
data
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/messaging/rabbitmq_parameter
View file @
ad837709
...
...
@@ -146,6 +146,6 @@ def main():
module
.
exit_json
(
changed
=
changed
,
component
=
component
,
name
=
name
,
vhost
=
vhost
,
state
=
state
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/messaging/rabbitmq_plugin
View file @
ad837709
...
...
@@ -125,6 +125,6 @@ def main():
changed
=
len
(
enabled
)
>
0
or
len
(
disabled
)
>
0
module
.
exit_json
(
changed
=
changed
,
enabled
=
enabled
,
disabled
=
disabled
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/messaging/rabbitmq_user
View file @
ad837709
...
...
@@ -243,6 +243,6 @@ def main():
module
.
exit_json
(
changed
=
changed
,
user
=
username
,
state
=
state
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/messaging/rabbitmq_vhost
View file @
ad837709
...
...
@@ -141,6 +141,6 @@ def main():
module
.
exit_json
(
changed
=
changed
,
name
=
name
,
state
=
state
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/monitoring/airbrake_deployment
View file @
ad837709
...
...
@@ -126,7 +126,7 @@ def main():
else
:
module
.
fail_json
(
msg
=
"HTTP result code:
%
d"
%
result
.
code
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/monitoring/datadog_event
View file @
ad837709
...
...
@@ -133,6 +133,6 @@ def post_event(module):
except
socket
.
error
,
e
:
module
.
fail_json
(
msg
=
"Socket error:
%
s to
%
s"
%
(
e
,
uri
))
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/monitoring/monit
View file @
ad837709
...
...
@@ -142,7 +142,7 @@ def main():
module
.
exit_json
(
changed
=
False
,
name
=
name
,
state
=
state
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/monitoring/nagios
View file @
ad837709
...
...
@@ -875,6 +875,6 @@ class Nagios(object):
changed
=
True
)
######################################################################
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/monitoring/newrelic_deployment
View file @
ad837709
...
...
@@ -156,7 +156,7 @@ def main():
else
:
module
.
fail_json
(
msg
=
"result code:
%
d"
%
result
.
code
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/net_infrastructure/dnsmadeeasy
View file @
ad837709
...
...
@@ -336,6 +336,6 @@ def main():
module
.
fail_json
(
msg
=
"'
%
s' is an unknown value for the state argument"
%
state
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/net_infrastructure/netscaler
View file @
ad837709
...
...
@@ -175,6 +175,6 @@ def main():
module
.
exit_json
(
**
result
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/net_infrastructure/openvswitch_bridge
View file @
ad837709
...
...
@@ -125,6 +125,6 @@ def main():
br
.
run
()
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/net_infrastructure/openvswitch_port
View file @
ad837709
...
...
@@ -129,6 +129,6 @@ def main():
port
.
run
()
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/network/get_url
View file @
ad837709
...
...
@@ -363,6 +363,6 @@ def main():
module
.
exit_json
(
url
=
url
,
dest
=
dest
,
src
=
tmpsrc
,
md5sum
=
md5sum_src
,
sha256sum
=
sha256sum
,
changed
=
changed
,
msg
=
info
.
get
(
'msg'
,
''
))
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/network/slurp
View file @
ad837709
...
...
@@ -68,7 +68,7 @@ def main():
module
.
exit_json
(
content
=
data
,
encoding
=
'base64'
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
...
...
library/network/uri
View file @
ad837709
...
...
@@ -420,6 +420,6 @@ def main():
module
.
exit_json
(
changed
=
changed
,
**
uresp
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/notification/campfire
View file @
ad837709
...
...
@@ -128,6 +128,6 @@ def main():
module
.
exit_json
(
changed
=
True
,
room
=
room
,
msg
=
msg
,
notify
=
notify
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/notification/flowdock
View file @
ad837709
...
...
@@ -194,7 +194,7 @@ def main():
module
.
exit_json
(
changed
=
False
,
msg
=
module
.
params
[
"msg"
])
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/notification/grove
View file @
ad837709
...
...
@@ -83,6 +83,6 @@ def main():
# Mission complete
module
.
exit_json
(
msg
=
"OK"
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/notification/hipchat
View file @
ad837709
...
...
@@ -139,6 +139,6 @@ def main():
module
.
exit_json
(
changed
=
changed
,
room
=
room
,
msg_from
=
msg_from
,
msg
=
msg
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/notification/irc
View file @
ad837709
...
...
@@ -154,6 +154,6 @@ def main():
module
.
exit_json
(
changed
=
False
,
channel
=
channel
,
nick
=
nick
,
msg
=
msg
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/notification/jabber
View file @
ad837709
...
...
@@ -141,6 +141,6 @@ def main():
module
.
exit_json
(
changed
=
False
,
to
=
to
,
user
=
user
,
msg
=
msg
.
getBody
())
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/notification/mail
View file @
ad837709
...
...
@@ -247,6 +247,6 @@ def main():
module
.
exit_json
(
changed
=
False
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/notification/mqtt
View file @
ad837709
...
...
@@ -175,6 +175,6 @@ def main():
module
.
exit_json
(
changed
=
False
,
topic
=
topic
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/notification/osx_say
View file @
ad837709
...
...
@@ -71,6 +71,6 @@ def main():
module
.
exit_json
(
msg
=
msg
,
changed
=
False
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/packaging/apt
View file @
ad837709
...
...
@@ -434,7 +434,7 @@ def main():
except apt.cache.LockFailedException:
module.fail_json(msg="Failed to lock apt for exclusive operation")
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from ansible.module_utils.basic import *
main()
library/packaging/apt_repository
View file @
ad837709
...
...
@@ -381,7 +381,7 @@ def main():
module
.
exit_json
(
changed
=
changed
,
repo
=
repo
,
state
=
state
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/packaging/easy_install
View file @
ad837709
...
...
@@ -179,7 +179,7 @@ def main():
module
.
exit_json
(
changed
=
changed
,
binary
=
easy_install
,
name
=
name
,
virtualenv
=
env
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/packaging/homebrew
View file @
ad837709
...
...
@@ -170,7 +170,7 @@ def main():
elif
p
[
"state"
]
in
[
"absent"
,
"removed"
]:
remove_packages
(
module
,
brew_path
,
pkgs
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/packaging/macports
View file @
ad837709
...
...
@@ -209,7 +209,7 @@ def main():
elif
p
[
"state"
]
==
"inactive"
:
deactivate_packages
(
module
,
port_path
,
pkgs
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/packaging/npm
View file @
ad837709
...
...
@@ -223,6 +223,6 @@ def main():
module
.
exit_json
(
changed
=
changed
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/packaging/openbsd_pkg
View file @
ad837709
...
...
@@ -276,6 +276,6 @@ def main():
module
.
exit_json
(
**
result
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/packaging/opkg
View file @
ad837709
...
...
@@ -143,7 +143,7 @@ def main():
elif
p
[
"state"
]
in
[
"absent"
,
"removed"
]:
remove_packages
(
module
,
opkg_path
,
pkgs
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/packaging/pacman
View file @
ad837709
...
...
@@ -212,7 +212,7 @@ def main():
elif
p
[
"state"
]
==
"absent"
:
remove_packages
(
module
,
pkgs
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/packaging/pip
View file @
ad837709
...
...
@@ -346,7 +346,7 @@ def main():
module
.
exit_json
(
changed
=
changed
,
cmd
=
cmd
,
name
=
name
,
version
=
version
,
state
=
state
,
requirements
=
requirements
,
virtualenv
=
env
,
stdout
=
out
,
stderr
=
err
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/packaging/pkgin
View file @
ad837709
...
...
@@ -162,7 +162,7 @@ def main():
elif
p
[
"state"
]
==
"absent"
:
remove_packages
(
module
,
pkgin_path
,
pkgs
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/packaging/pkgng
View file @
ad837709
...
...
@@ -155,7 +155,7 @@ def main():
elif
p
[
"state"
]
==
"absent"
:
remove_packages
(
module
,
pkgin_path
,
pkgs
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/packaging/portinstall
View file @
ad837709
...
...
@@ -202,7 +202,7 @@ def main():
elif
p
[
"state"
]
==
"absent"
:
remove_packages
(
module
,
pkgs
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/packaging/swdepot
View file @
ad837709
...
...
@@ -188,7 +188,7 @@ def main():
module
.
exit_json
(
changed
=
changed
,
name
=
name
,
state
=
state
,
msg
=
msg
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
...
...
library/packaging/urpmi
View file @
ad837709
...
...
@@ -202,7 +202,7 @@ def main():
elif
p
[
'state'
]
in
[
'removed'
,
'absent'
]:
remove_packages
(
module
,
packages
)
#
this
is
magic
,
see
lib
/
ansible
/
module_common
.
py
#
import
module
snippets
from
ansible
.
module_utils
.
basic
import
*
main
()
library/packaging/yum
View file @
ad837709
...
...
@@ -737,7 +737,7 @@ def main():
disablerepo
,
disable_gpg_check
)
module
.
fail_json
(
msg
=
"we should never get here unless this all failed"
,
**
res
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/packaging/zypper
View file @
ad837709
...
...
@@ -224,6 +224,6 @@ def main():
module
.
exit_json
(
**
result
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/packaging/zypper_repository
View file @
ad837709
...
...
@@ -151,7 +151,7 @@ def main():
module
.
exit_json
(
changed
=
changed
,
repo
=
repo
,
state
=
state
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/system/authorized_key
View file @
ad837709
...
...
@@ -383,6 +383,6 @@ def main():
results
=
enforce_state
(
module
,
module
.
params
)
module
.
exit_json
(
**
results
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/system/facter
View file @
ad837709
...
...
@@ -49,7 +49,7 @@ def main():
rc
,
out
,
err
=
module
.
run_command
(
cmd
,
check_rc
=
True
)
module
.
exit_json
(
**
json
.
loads
(
out
))
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
...
...
library/system/filesystem
View file @
ad837709
...
...
@@ -107,6 +107,6 @@ def main():
module
.
exit_json
(
changed
=
changed
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/system/kernel_blacklist
View file @
ad837709
...
...
@@ -136,6 +136,6 @@ def main():
module
.
exit_json
(
**
args
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/system/lvg
View file @
ad837709
...
...
@@ -228,6 +228,6 @@ def main():
module
.
exit_json
(
changed
=
changed
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/system/lvol
View file @
ad837709
...
...
@@ -205,6 +205,6 @@ def main():
module
.
exit_json
(
changed
=
changed
,
msg
=
msg
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/system/modprobe
View file @
ad837709
...
...
@@ -94,6 +94,6 @@ def main():
module
.
exit_json
(
**
args
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/system/mount
View file @
ad837709
...
...
@@ -318,6 +318,6 @@ def main():
module
.
fail_json
(
msg
=
'Unexpected position reached'
)
sys
.
exit
(
0
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/system/ohai
View file @
ad837709
...
...
@@ -48,7 +48,7 @@ def main():
rc
,
out
,
err
=
module
.
run_command
(
cmd
,
check_rc
=
True
)
module
.
exit_json
(
**
json
.
loads
(
out
))
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
...
...
library/system/open_iscsi
View file @
ad837709
...
...
@@ -370,7 +370,7 @@ def main():
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
...
...
library/system/setup
View file @
ad837709
...
...
@@ -2205,6 +2205,6 @@ def main():
data
=
run_setup
(
module
)
module
.
exit_json
(
**
data
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/system/sysctl
View file @
ad837709
...
...
@@ -339,6 +339,6 @@ def main():
module
.
exit_json
(
changed
=
changed
,
**
sysctl_args
)
sys
.
exit
(
0
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/utilities/accelerate
View file @
ad837709
...
...
@@ -450,6 +450,6 @@ def main():
daemonize
(
module
,
password
,
port
,
timeout
,
minutes
,
ipv6
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/utilities/fireball
View file @
ad837709
...
...
@@ -275,6 +275,6 @@ def main():
daemonize
(
module
,
password
,
port
,
minutes
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/utilities/wait_for
View file @
ad837709
...
...
@@ -196,6 +196,6 @@ def main():
elapsed
=
datetime
.
datetime
.
now
()
-
start
module
.
exit_json
(
state
=
state
,
port
=
port
,
search_regex
=
search_regex
,
path
=
path
,
elapsed
=
elapsed
.
seconds
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/web_infrastructure/django_manage
View file @
ad837709
...
...
@@ -273,7 +273,7 @@ def main():
module
.
exit_json
(
changed
=
changed
,
out
=
out
,
cmd
=
cmd
,
app_path
=
app_path
,
virtualenv
=
virtualenv
,
settings
=
module
.
params
[
'settings'
],
pythonpath
=
module
.
params
[
'pythonpath'
])
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/web_infrastructure/htpasswd
View file @
ad837709
...
...
@@ -211,7 +211,7 @@ def main():
module
.
fail_json
(
msg
=
str
(
e
))
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
if
__name__
==
'__main__'
:
...
...
library/web_infrastructure/jboss
View file @
ad837709
...
...
@@ -135,6 +135,6 @@ def main():
module
.
exit_json
(
changed
=
changed
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
library/web_infrastructure/supervisorctl
View file @
ad837709
...
...
@@ -189,7 +189,7 @@ def main():
module
.
exit_json
(
changed
=
False
,
name
=
name
,
state
=
state
)
#
this is magic, see lib/ansible/module_common.py
#
import module snippets
from
ansible.module_utils.basic
import
*
main
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment