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
c485cb37
Commit
c485cb37
authored
Feb 26, 2013
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove some tab/space issues in previous commits.
parent
6a487409
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
9 deletions
+7
-9
library/ec2
+1
-3
library/postgresql_db
+1
-1
library/postgresql_user
+4
-4
library/setup
+1
-1
No files found.
library/ec2
View file @
c485cb37
...
...
@@ -248,9 +248,7 @@ def main():
}
instances
.
append
(
d
)
result
=
{
"changed"
:
True
,
"instances"
:
instances
}
module
.
exit_json
(
**
result
)
module
.
exit_json
(
changed
=
True
,
instances
=
instances
)
# this is magic, see lib/ansible/module_common.py
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
...
...
library/postgresql_db
View file @
c485cb37
...
...
@@ -149,7 +149,7 @@ def main():
encoding
=
dict
(
default
=
""
),
state
=
dict
(
default
=
"present"
,
choices
=
[
"absent"
,
"present"
]),
),
supports_check_mode
=
True
supports_check_mode
=
True
)
if
not
postgresqldb_found
:
...
...
library/postgresql_user
View file @
c485cb37
...
...
@@ -376,7 +376,7 @@ def main():
fail_on_user
=
dict
(
default
=
'yes'
),
role_attr_flags
=
dict
(
default
=
''
)
),
supports_check_mode
=
True
supports_check_mode
=
True
)
user
=
module
.
params
[
"user"
]
...
...
@@ -419,7 +419,7 @@ def main():
if
user_exists
(
cursor
,
user
):
if
module
.
check_mode
:
kw
[
'changed'
]
=
True
kw
[
'changed'
]
=
True
module
.
exit_json
(
**
kw
)
changed
=
user_alter
(
cursor
,
user
,
password
,
role_attr_flags
)
...
...
@@ -429,7 +429,7 @@ def main():
module
.
fail_json
(
msg
=
msg
)
if
module
.
check_mode
:
kw
[
'changed'
]
=
True
kw
[
'changed'
]
=
True
module
.
exit_json
(
**
kw
)
changed
=
user_add
(
cursor
,
user
,
password
,
role_attr_flags
)
...
...
@@ -438,7 +438,7 @@ def main():
if
user_exists
(
cursor
,
user
):
if
module
.
check_mode
:
kw
[
'changed'
]
=
True
kw
[
'changed'
]
=
True
kw
[
'user_removed'
]
=
True
module
.
exit_json
(
**
kw
)
...
...
library/setup
View file @
c485cb37
...
...
@@ -193,7 +193,7 @@ class Facts(object):
self
.
facts
[
'os_family'
]
=
self
.
facts
[
'distribution'
]
if
self
.
facts
[
'distribution'
]
in
OS_FAMILY
:
self
.
facts
[
'os_family'
]
=
OS_FAMILY
[
self
.
facts
[
'distribution'
]]
self
.
facts
[
'os_family'
]
=
OS_FAMILY
[
self
.
facts
[
'distribution'
]]
def
get_cmdline
(
self
):
data
=
get_file_content
(
'/proc/cmdline'
)
...
...
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