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
9d0f2a6e
Commit
9d0f2a6e
authored
Apr 21, 2012
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Unused import
parent
f72114c6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
3 deletions
+23
-3
Makefile
+23
-2
lib/ansible/playbook.py
+0
-1
No files found.
Makefile
View file @
9d0f2a6e
#!/usr/bin/make
########################################################
# Makefile for Ansible
#
# useful targets:
# make sdist ---------------- produce a tarball
# make rpm ----------------- produce RPMs
# make debian --------------- produce a dpkg (FIXME?)
# make docs ----------------- rebuild the manpages (results are checked in)
# make tests ---------------- run the tests
# make pyflakes, make pep8 -- source code checks
########################################################
# variable section
NAME
=
"ansible"
# Manpages are currently built with asciidoc -- would like to move to markdown
# This doesn't evaluate until it's called. The -D argument is the
# directory of the target file ($@), kinda like `dirname`.
ASCII2MAN
=
a2x
-D
$
(
dir
$@
)
-d
manpage
-f
manpage
$<
ASCII2HTMLMAN
=
a2x
-D
docs/html/man/
-d
manpage
-f
xhtml
# Space separated list of all the manpages we want to end up with.
MANPAGES
:=
docs/man/man1/ansible.1 docs/man/man1/ansible-playbook.1
SITELIB
=
$(
shell
python
-c
"from distutils.sysconfig import get_python_lib; print get_python_lib(
)
"
)
# VERSION file provides one place to update the software version
VERSION
:=
$(
shell
cat
VERSION
)
# These are for building the RPM.
# RPM build parameters
RPMSPECDIR
=
packaging/rpm
RPMSPEC
=
$(RPMSPECDIR)
/ansible.spec
RPMVERSION
:=
$(
shell
awk
'/Version/{print $$2; exit}'
<
$(RPMSPEC)
| cut
-d
"%"
-f1
)
...
...
@@ -17,6 +36,8 @@ RPMRELEASE := $(shell awk '/Release/{print $$2; exit}' < $(RPMSPEC) | cut -d "%"
RPMDIST
=
$(
shell
rpm
--eval
'%dist'
)
RPMNVR
=
"
$(NAME)
-
$(RPMVERSION)
-
$(RPMRELEASE)$(RPMDIST)
"
########################################################
all
:
clean python
tests
:
...
...
lib/ansible/playbook.py
View file @
9d0f2a6e
...
...
@@ -22,7 +22,6 @@ import ansible.runner
import
ansible.constants
as
C
from
ansible
import
utils
from
ansible
import
errors
import
shlex
import
os
import
time
...
...
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