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
be4cb64c
Commit
be4cb64c
authored
Feb 28, 2012
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Relicensing to GPLv3, all previous committers ok'd on mailing list.
parent
f4ffddef
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
236 additions
and
56 deletions
+236
-56
README.md
+1
-1
bin/ansible
+13
-17
docs/man/man1/ansible.1.asciidoc
+1
-2
lib/ansible/__init__.py
+17
-0
lib/ansible/constants.py
+18
-0
lib/ansible/playbook.py
+14
-18
lib/ansible/runner.py
+15
-18
library/command
+18
-0
library/copy
+18
-0
library/facter
+18
-0
library/git
+17
-0
library/ohai
+18
-0
library/ping
+17
-0
library/service
+17
-0
library/setup
+17
-0
library/template
+17
-0
No files found.
README.md
View file @
be4cb64c
...
@@ -197,7 +197,7 @@ See github's issue tracker for what we're thinking about
...
@@ -197,7 +197,7 @@ See github's issue tracker for what we're thinking about
License
License
=======
=======
MIT
GPLv3
Mailing List
Mailing List
============
============
...
...
bin/ansible
View file @
be4cb64c
#!/usr/bin/python
#!/usr/bin/python
#
Copyright (c) 2012
Michael DeHaan <michael.dehaan@gmail.com>
#
(c) 2012,
Michael DeHaan <michael.dehaan@gmail.com>
#
#
# Permission is hereby granted, free of charge, to any person
# This file is part of Ansible
# obtaining a copy of this software and associated documentation
# files (the "Software"), to deal in the Software without restriction,
# including without limitation the rights to use, copy, modify, merge,
# publish, distribute, sublicense, and/or sell copies of the Software,
# and to permit persons to whom the Software is furnished to do so,
# subject to the following conditions:
#
#
# The above copyright notice and this permission notice shall be
# Ansible is free software: you can redistribute it and/or modify
# included in all copies or substantial portions of the Software.
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
#
#
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND
,
#
Ansible is distributed in the hope that it will be useful
,
#
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
#
but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY
, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
# MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. See the
#
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
#
GNU General Public License for more details.
#
ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
#
#
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
#
You should have received a copy of the GNU General Public License
#
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
.
#
along with Ansible. If not, see <http://www.gnu.org/licenses/>
.
from
optparse
import
OptionParser
from
optparse
import
OptionParser
import
json
import
json
...
...
docs/man/man1/ansible.1.asciidoc
View file @
be4cb64c
...
@@ -99,8 +99,7 @@ COPYRIGHT
...
@@ -99,8 +99,7 @@ COPYRIGHT
Copyright © 2012, Michael DeHaan
Copyright © 2012, Michael DeHaan
Ansible is released under the terms of the MIT license.
Ansible is released under the terms of the GPLv3 License.
SEE ALSO
SEE ALSO
...
...
lib/ansible/__init__.py
View file @
be4cb64c
# (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
lib/ansible/constants.py
View file @
be4cb64c
# (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
#
# control side (aka 'overlord')
# control side (aka 'overlord')
DEFAULT_HOST_LIST
=
'/etc/ansible/hosts'
DEFAULT_HOST_LIST
=
'/etc/ansible/hosts'
DEFAULT_MODULE_PATH
=
'/usr/share/ansible'
DEFAULT_MODULE_PATH
=
'/usr/share/ansible'
...
...
lib/ansible/playbook.py
View file @
be4cb64c
#
Copyright (c) 2012
Michael DeHaan <michael.dehaan@gmail.com>
#
(c) 2012,
Michael DeHaan <michael.dehaan@gmail.com>
#
#
# Permission is hereby granted, free of charge, to any person
# This file is part of Ansible
# obtaining a copy of this software and associated documentation
# files (the "Software"), to deal in the Software without restriction,
# including without limitation the rights to use, copy, modify, merge,
# publish, distribute, sublicense, and/or sell copies of the Software,
# and to permit persons to whom the Software is furnished to do so,
# subject to the following conditions:
#
#
# The above copyright notice and this permission notice shall be
# Ansible is free software: you can redistribute it and/or modify
# included in all copies or substantial portions of the Software.
# it under the terms of the GNU General Public License as published by
#
# the Free Software Foundation, either version 3 of the License, or
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# (at your option) any later version.
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
#
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
# Ansible is distributed in the hope that it will be useful,
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# GNU General Public License for more details.
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
import
ansible.runner
import
ansible.runner
import
ansible.constants
as
C
import
ansible.constants
as
C
...
...
lib/ansible/runner.py
View file @
be4cb64c
#
Copyright (c) 2012
Michael DeHaan <michael.dehaan@gmail.com>
#
(c) 2012,
Michael DeHaan <michael.dehaan@gmail.com>
#
#
# Permission is hereby granted, free of charge, to any person
# This file is part of Ansible
# obtaining a copy of this software and associated documentation
#
# files (the "Software"), to deal in the Software without restriction,
# Ansible is free software: you can redistribute it and/or modify
# including without limitation the rights to use, copy, modify, merge,
# it under the terms of the GNU General Public License as published by
# publish, distribute, sublicense, and/or sell copies of the Software,
# the Free Software Foundation, either version 3 of the License, or
# and to permit persons to whom the Software is furnished to do so,
# (at your option) any later version.
# subject to the following conditions:
#
# Ansible is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
#
#
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
# ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
# CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
import
fnmatch
import
fnmatch
import
multiprocessing
import
multiprocessing
...
...
library/command
View file @
be4cb64c
#!/usr/bin/python
#!/usr/bin/python
# (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>, and others
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
#
try
:
try
:
import
json
import
json
except
ImportError
:
except
ImportError
:
...
...
library/copy
View file @
be4cb64c
#!/usr/bin/python
#!/usr/bin/python
# (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
#
import
sys
import
sys
import
os
import
os
import
shlex
import
shlex
...
...
library/facter
View file @
be4cb64c
#!/usr/bin/bash
#!/usr/bin/bash
# (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
#
# things that must be installed to use this
# things that must be installed to use this
# facter
# facter
# ruby-json
# ruby-json
...
...
library/git
View file @
be4cb64c
#!/usr/bin/python
#!/usr/bin/python
# (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
# I wanted to keep this simple at first, so for now this checks out
# I wanted to keep this simple at first, so for now this checks out
# from the MASTER branch of a repo at a particular SHA or
# from the MASTER branch of a repo at a particular SHA or
# tag. Latest is not supported, you should not be doing
# tag. Latest is not supported, you should not be doing
...
...
library/ohai
View file @
be4cb64c
#!/usr/bin/python
#!/usr/bin/python
# (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
#
# requires 'ohai' to be installed
# requires 'ohai' to be installed
try
:
try
:
...
...
library/ping
View file @
be4cb64c
#!/usr/bin/python
#!/usr/bin/python
# (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
try
:
try
:
import
json
import
json
except
ImportError
:
except
ImportError
:
...
...
library/service
View file @
be4cb64c
#!/usr/bin/python
#!/usr/bin/python
# (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
try
:
try
:
import
json
import
json
except
ImportError
:
except
ImportError
:
...
...
library/setup
View file @
be4cb64c
#!/usr/bin/python
#!/usr/bin/python
# (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
DEFAULT_ANSIBLE_SETUP
=
"/etc/ansible/setup"
DEFAULT_ANSIBLE_SETUP
=
"/etc/ansible/setup"
import
sys
import
sys
...
...
library/template
View file @
be4cb64c
#!/usr/bin/python
#!/usr/bin/python
# (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
import
sys
import
sys
import
os
import
os
import
jinja2
import
jinja2
...
...
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