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
578ec127
Commit
578ec127
authored
Feb 23, 2013
by
Daniel Hokka Zakrisson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove choices=BOOLEANS as it is no longer needed
parent
df798d06
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
36 additions
and
36 deletions
+36
-36
library/apt
+4
-4
library/assemble
+1
-1
library/copy
+2
-2
library/cron
+2
-2
library/easy_install
+1
-1
library/file
+1
-1
library/get_url
+1
-1
library/git
+1
-1
library/hg
+2
-2
library/ini_file
+1
-1
library/lineinfile
+2
-2
library/pacman
+1
-1
library/pip
+2
-2
library/rabbitmq_plugin
+1
-1
library/rabbitmq_user
+1
-1
library/rabbitmq_vhost
+1
-1
library/seboolean
+2
-2
library/subversion
+1
-1
library/sysctl
+1
-1
library/uri
+3
-3
library/user
+5
-5
No files found.
library/apt
View file @
578ec127
...
...
@@ -181,12 +181,12 @@ def main():
module = AnsibleModule(
argument_spec = dict(
state = dict(default='
installed
', choices=['
installed
', '
latest
', '
removed
', '
absent
', '
present
']),
update_cache = dict(default='
no
',
choices=BOOLEANS,
aliases=['
update
-
cache
'], type='
bool
'),
purge = dict(default='
no
',
choices=BOOLEANS,
type='
bool
'),
update_cache = dict(default='
no
', aliases=['
update
-
cache
'], type='
bool
'),
purge = dict(default='
no
', type='
bool
'),
package = dict(default=None, aliases=['
pkg
', '
name
']),
default_release = dict(default=None, aliases=['
default
-
release
']),
install_recommends = dict(default='
yes
', aliases=['
install
-
recommends
'],
choices=BOOLEANS,
type='
bool
'),
force = dict(default='
no
',
choices=BOOLEANS,
type='
bool
')
install_recommends = dict(default='
yes
', aliases=['
install
-
recommends
'], type='
bool
'),
force = dict(default='
no
', type='
bool
')
),
supports_check_mode = True
)
...
...
library/assemble
View file @
578ec127
...
...
@@ -94,7 +94,7 @@ def main():
argument_spec
=
dict
(
src
=
dict
(
required
=
True
),
dest
=
dict
(
required
=
True
),
backup
=
dict
(
default
=
False
,
choices
=
BOOLEANS
,
type
=
'bool'
),
backup
=
dict
(
default
=
False
,
type
=
'bool'
),
),
add_file_common_args
=
True
)
...
...
library/copy
View file @
578ec127
...
...
@@ -78,8 +78,8 @@ def main():
argument_spec
=
dict
(
src
=
dict
(
required
=
True
),
dest
=
dict
(
required
=
True
),
backup
=
dict
(
default
=
False
,
choices
=
BOOLEANS
,
type
=
'bool'
),
force
=
dict
(
default
=
'yes'
,
choices
=
BOOLEANS
,
aliases
=
[
'thirsty'
],
type
=
'bool'
),
backup
=
dict
(
default
=
False
,
type
=
'bool'
),
force
=
dict
(
default
=
'yes'
,
aliases
=
[
'thirsty'
],
type
=
'bool'
),
),
add_file_common_args
=
True
,
)
...
...
library/cron
View file @
578ec127
...
...
@@ -259,13 +259,13 @@ def main():
job
=
dict
(
required
=
False
),
cron_file
=
dict
(
required
=
False
),
state
=
dict
(
default
=
'present'
,
choices
=
[
'present'
,
'absent'
]),
backup
=
dict
(
default
=
False
,
choices
=
BOOLEANS
,
type
=
'bool'
),
backup
=
dict
(
default
=
False
,
type
=
'bool'
),
minute
=
dict
(
default
=
'*'
),
hour
=
dict
(
default
=
'*'
),
day
=
dict
(
default
=
'*'
),
month
=
dict
(
default
=
'*'
),
weekday
=
dict
(
default
=
'*'
),
reboot
=
dict
(
required
=
False
,
default
=
False
,
choices
=
BOOLEANS
,
type
=
'bool'
)
reboot
=
dict
(
required
=
False
,
default
=
False
,
type
=
'bool'
)
)
)
...
...
library/easy_install
View file @
578ec127
...
...
@@ -82,7 +82,7 @@ def main():
arg_spec
=
dict
(
name
=
dict
(
required
=
True
),
virtualenv
=
dict
(
default
=
None
,
required
=
False
),
virtualenv_site_packages
=
dict
(
default
=
'no'
,
choices
=
BOOLEANS
,
type
=
'bool'
),
virtualenv_site_packages
=
dict
(
default
=
'no'
,
type
=
'bool'
),
virtualenv_command
=
dict
(
default
=
'virtualenv'
,
required
=
False
),
)
...
...
library/file
View file @
578ec127
...
...
@@ -140,7 +140,7 @@ def main():
argument_spec
=
dict
(
state
=
dict
(
choices
=
[
'file'
,
'directory'
,
'link'
,
'absent'
],
default
=
'file'
),
path
=
dict
(
aliases
=
[
'dest'
,
'name'
],
required
=
True
),
recurse
=
dict
(
default
=
'no'
,
choices
=
BOOLEANS
,
type
=
'bool'
)
recurse
=
dict
(
default
=
'no'
,
type
=
'bool'
)
),
add_file_common_args
=
True
,
supports_check_mode
=
True
...
...
library/get_url
View file @
578ec127
...
...
@@ -195,7 +195,7 @@ def main():
argument_spec
=
dict
(
url
=
dict
(
required
=
True
),
dest
=
dict
(
required
=
True
),
force
=
dict
(
default
=
'no'
,
choices
=
BOOLEANS
,
aliases
=
[
'thirsty'
],
type
=
'bool'
)
force
=
dict
(
default
=
'no'
,
aliases
=
[
'thirsty'
],
type
=
'bool'
)
),
add_file_common_args
=
True
)
...
...
library/git
View file @
578ec127
...
...
@@ -223,7 +223,7 @@ def main():
repo
=
dict
(
required
=
True
,
aliases
=
[
'name'
]),
version
=
dict
(
default
=
'HEAD'
),
remote
=
dict
(
default
=
'origin'
),
force
=
dict
(
default
=
'yes'
,
choices
=
BOOLEANS
,
type
=
'bool'
)
force
=
dict
(
default
=
'yes'
,
type
=
'bool'
)
)
)
...
...
library/hg
View file @
578ec127
...
...
@@ -204,8 +204,8 @@ def main():
repo
=
dict
(
required
=
True
),
dest
=
dict
(
required
=
True
),
revision
=
dict
(
default
=
"default"
),
force
=
dict
(
default
=
'yes'
,
choices
=
BOOLEANS
,
type
=
'bool'
),
purge
=
dict
(
default
=
'no'
,
choices
=
BOOLEANS
,
type
=
'bool'
)
force
=
dict
(
default
=
'yes'
,
type
=
'bool'
),
purge
=
dict
(
default
=
'no'
,
type
=
'bool'
)
),
)
repo
=
module
.
params
[
'repo'
]
...
...
library/ini_file
View file @
578ec127
...
...
@@ -158,7 +158,7 @@ def main():
section
=
dict
(
required
=
True
),
option
=
dict
(
required
=
False
),
value
=
dict
(
required
=
False
),
backup
=
dict
(
default
=
'no'
,
choices
=
BOOLEANS
,
type
=
'bool'
),
backup
=
dict
(
default
=
'no'
,
type
=
'bool'
),
state
=
dict
(
default
=
'present'
,
choices
=
[
'present'
,
'absent'
])
),
add_file_common_args
=
True
...
...
library/lineinfile
View file @
578ec127
...
...
@@ -241,8 +241,8 @@ def main():
line
=
dict
(
aliases
=
[
'value'
]),
insertafter
=
dict
(
default
=
None
),
insertbefore
=
dict
(
default
=
None
),
create
=
dict
(
default
=
False
,
choices
=
BOOLEANS
,
type
=
'bool'
),
backup
=
dict
(
default
=
False
,
choices
=
BOOLEANS
,
type
=
'bool'
),
create
=
dict
(
default
=
False
,
type
=
'bool'
),
backup
=
dict
(
default
=
False
,
type
=
'bool'
),
),
mutually_exclusive
=
[[
'insertbefore'
,
'insertafter'
]],
add_file_common_args
=
True
,
...
...
library/pacman
View file @
578ec127
...
...
@@ -134,7 +134,7 @@ def main():
module
=
AnsibleModule
(
argument_spec
=
dict
(
state
=
dict
(
default
=
"installed"
,
choices
=
[
"installed"
,
"absent"
]),
update_cache
=
dict
(
default
=
"no"
,
choices
=
BOOLEANS
,
aliases
=
[
"update-cache"
],
type
=
'bool'
),
update_cache
=
dict
(
default
=
"no"
,
aliases
=
[
"update-cache"
],
type
=
'bool'
),
name
=
dict
(
aliases
=
[
"pkg"
],
required
=
True
)))
...
...
library/pip
View file @
578ec127
...
...
@@ -158,9 +158,9 @@ def main():
version
=
dict
(
default
=
None
,
required
=
False
),
requirements
=
dict
(
default
=
None
,
required
=
False
),
virtualenv
=
dict
(
default
=
None
,
required
=
False
),
virtualenv_site_packages
=
dict
(
default
=
'no'
,
choices
=
BOOLEANS
,
type
=
'bool'
),
virtualenv_site_packages
=
dict
(
default
=
'no'
,
type
=
'bool'
),
virtualenv_command
=
dict
(
default
=
'virtualenv'
,
required
=
False
),
use_mirrors
=
dict
(
default
=
'yes'
,
choices
=
BOOLEANS
,
type
=
'bool'
),
use_mirrors
=
dict
(
default
=
'yes'
,
type
=
'bool'
),
extra_args
=
dict
(
default
=
None
,
required
=
False
),
),
required_one_of
=
[[
'name'
,
'requirements'
]],
...
...
library/rabbitmq_plugin
View file @
578ec127
...
...
@@ -75,7 +75,7 @@ class RabbitMqPlugins(object):
def
main
():
arg_spec
=
dict
(
names
=
dict
(
required
=
True
,
aliases
=
[
'name'
]),
new_only
=
dict
(
default
=
'no'
,
choices
=
BOOLEANS
,
type
=
'bool'
),
new_only
=
dict
(
default
=
'no'
,
type
=
'bool'
),
state
=
dict
(
default
=
'enabled'
,
choices
=
[
'enabled'
,
'disabled'
])
)
module
=
AnsibleModule
(
...
...
library/rabbitmq_user
View file @
578ec127
...
...
@@ -178,7 +178,7 @@ def main():
configure_priv
=
dict
(
default
=
'^$'
),
write_priv
=
dict
(
default
=
'^$'
),
read_priv
=
dict
(
default
=
'^$'
),
force
=
dict
(
default
=
'no'
,
choices
=
BOOLEANS
,
type
=
'bool'
),
force
=
dict
(
default
=
'no'
,
type
=
'bool'
),
state
=
dict
(
default
=
'present'
,
choices
=
[
'present'
,
'absent'
])
)
module
=
AnsibleModule
(
...
...
library/rabbitmq_vhost
View file @
578ec127
...
...
@@ -100,7 +100,7 @@ class RabbitMqVhost(object):
def
main
():
arg_spec
=
dict
(
name
=
dict
(
required
=
True
,
aliases
=
[
'vhost'
]),
tracing
=
dict
(
default
=
'off'
,
choices
=
BOOLEANS
,
aliases
=
[
'trace'
],
type
=
'bool'
),
tracing
=
dict
(
default
=
'off'
,
aliases
=
[
'trace'
],
type
=
'bool'
),
state
=
dict
(
default
=
'present'
,
choices
=
[
'present'
,
'absent'
])
)
...
...
library/seboolean
View file @
578ec127
...
...
@@ -158,8 +158,8 @@ def main():
module
=
AnsibleModule
(
argument_spec
=
dict
(
name
=
dict
(
required
=
True
),
persistent
=
dict
(
default
=
'no'
,
choices
=
BOOLEANS
,
type
=
'bool'
),
state
=
dict
(
required
=
True
,
choices
=
BOOLEANS
,
type
=
'bool'
)
persistent
=
dict
(
default
=
'no'
,
type
=
'bool'
),
state
=
dict
(
required
=
True
,
type
=
'bool'
)
)
)
...
...
library/subversion
View file @
578ec127
...
...
@@ -129,7 +129,7 @@ def main():
dest
=
dict
(
required
=
True
),
repo
=
dict
(
required
=
True
,
aliases
=
[
'name'
,
'repository'
]),
revision
=
dict
(
default
=
'HEAD'
,
aliases
=
[
'rev'
]),
force
=
dict
(
default
=
'yes'
,
choices
=
BOOLEANS
,
type
=
'bool'
),
force
=
dict
(
default
=
'yes'
,
type
=
'bool'
),
username
=
dict
(
required
=
False
),
password
=
dict
(
required
=
False
),
)
...
...
library/sysctl
View file @
578ec127
...
...
@@ -208,7 +208,7 @@ def main():
value
=
dict
(
aliases
=
[
'val'
],
required
=
False
),
state
=
dict
(
default
=
'present'
,
choices
=
[
'present'
,
'absent'
]),
checks
=
dict
(
default
=
'both'
,
choices
=
[
'none'
,
'before'
,
'after'
,
'both'
]),
reload
=
dict
(
default
=
True
,
choices
=
BOOLEANS
,
type
=
'bool'
),
reload
=
dict
(
default
=
True
,
type
=
'bool'
),
sysctl_file
=
dict
(
default
=
'/etc/sysctl.conf'
)
)
)
...
...
library/uri
View file @
578ec127
...
...
@@ -267,9 +267,9 @@ def main():
password
=
dict
(
required
=
False
,
default
=
None
),
body
=
dict
(
required
=
False
,
default
=
None
),
method
=
dict
(
required
=
False
,
default
=
'GET'
,
choices
=
[
'GET'
,
'POST'
,
'PUT'
,
'HEAD'
,
'DELETE'
,
'OPTIONS'
]),
return_content
=
dict
(
required
=
False
,
default
=
'no'
,
choices
=
BOOLEANS
,
type
=
'bool'
),
force_basic_auth
=
dict
(
required
=
False
,
default
=
'no'
,
choices
=
BOOLEANS
,
type
=
'bool'
),
follow_redirects
=
dict
(
required
=
False
,
default
=
'no'
,
choices
=
BOOLEANS
,
type
=
'bool'
),
return_content
=
dict
(
required
=
False
,
default
=
'no'
,
type
=
'bool'
),
force_basic_auth
=
dict
(
required
=
False
,
default
=
'no'
,
type
=
'bool'
),
follow_redirects
=
dict
(
required
=
False
,
default
=
'no'
,
type
=
'bool'
),
creates
=
dict
(
required
=
False
,
default
=
None
),
removes
=
dict
(
required
=
False
,
default
=
None
),
status_code
=
dict
(
required
=
False
,
default
=
"200"
),
...
...
library/user
View file @
578ec127
...
...
@@ -1002,13 +1002,13 @@ def main():
shell
=
dict
(
default
=
None
),
password
=
dict
(
default
=
None
),
# following options are specific to userdel
force
=
dict
(
default
=
'no'
,
choices
=
BOOLEANS
,
type
=
'bool'
),
remove
=
dict
(
default
=
'no'
,
choices
=
BOOLEANS
,
type
=
'bool'
),
force
=
dict
(
default
=
'no'
,
type
=
'bool'
),
remove
=
dict
(
default
=
'no'
,
type
=
'bool'
),
# following options are specific to useradd
createhome
=
dict
(
default
=
'yes'
,
choices
=
BOOLEANS
,
type
=
'bool'
),
system
=
dict
(
default
=
'no'
,
choices
=
BOOLEANS
,
type
=
'bool'
),
createhome
=
dict
(
default
=
'yes'
,
type
=
'bool'
),
system
=
dict
(
default
=
'no'
,
type
=
'bool'
),
# following options are specific to usermod
append
=
dict
(
default
=
'no'
,
choices
=
BOOLEANS
,
type
=
'bool'
),
append
=
dict
(
default
=
'no'
,
type
=
'bool'
),
# following are specific to ssh key generation
generate_ssh_key
=
dict
(
choices
=
BOOLEANS
,
type
=
'bool'
),
ssh_key_bits
=
dict
(
default
=
ssh_defaults
[
'bits'
]),
...
...
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