Commit Graph

107 Commits (d73f5a4adbaac2591e2a00f4e17dbae854c73765)

Author SHA1 Message Date
Brian Coca b0b4c56bd7 made output match multiline, as per posted code from @n0trax
fixes #2081
9 years ago
Toshio Kuratomi 94b8ebe1bf Use is_executable from its new location 9 years ago
Adam Ever-Hadani 68c8234533 added support for 'collectstatic clear' in django_manage.py 9 years ago
Igor Khomyakov 305970569d fixed 'present' 9 years ago
Chris Church 9e47219b96 Merge pull request #1153 from Ernest0x/patch-3
make migrate command idempotent with django built-in migrations
9 years ago
Brian Coca f2acf41c77 Merge pull request #1700 from faulkner/django_manage-collectstatic-change
Report change status on django_manage collectstatic.
9 years ago
James Cammarata 9acf10face Correctly default crypt_scheme in htpasswd 9 years ago
Chris Faulkner 440b395f37 Report change status on django_manage collectstatic. 9 years ago
Brian Coca 549bbc7ee7 Merge pull request #1165 from ludat/devel
django_manage: Use shebang in manage.py instead of hardcoded "python"
9 years ago
Toshio Kuratomi 1458a6ec9a Merge pull request #621 from hostmaster/supervisorctl-not-existed-sv
supervisorctl module: Check if a service exists
9 years ago
Toshio Kuratomi ae49022a2c Merge pull request #574 from cchurch/django_manage_other_command
Add example of using django_manage to run other commands.
9 years ago
Brian Coca 68a310d860 Merge pull request #937 from nfubh/devel
added 'absent' option to supervisorctl
9 years ago
Brian Coca 081dc14ac7 Merge pull request #1617 from vroetman/devel
apache2_module documetation update
9 years ago
Brian Coca 64e357020e Merge pull request #469 from alexkingnz/allow-extra-hash
Extend the htpasswd so it can use different hashes in addition to the 4 currently supported by Apache.
9 years ago
Roetman, Victor a81dea2b17 apache2_module documetation update
requires a2enmod and a2dismod
9 years ago
Toshio Kuratomi 86677f9ed5 Merge pull request #376 from lorin/django-expanduser
django_manage: expand ~ in app_path parameter
9 years ago
Toshio Kuratomi 6611ee34a5 Fix for when the password file did not exist previously 9 years ago
James Cammarata a1181b490b Merge pull request #1406 from Jmainguy/htpasswd_blank
remove blank lines from htpasswd file
9 years ago
Greg DeKoenigsberg 2a5f0bde87 Proper author info for all remaining modules 9 years ago
Kamil Madac b1160ade9a Better error handling in supervisorctl module.
If execution of supervisorctl was not successful (exit code > 0),
module silently supress this error and returns changed = false,
which turns to OK task state.
This is very confusing, when supervisorctl needs authentication,
and credentials are not specified in module or are incorrect,
services are not restarted/started/stopped without raising an error.
9 years ago
Igor Khomyakov 361a1e1b65 Check if a service exists 9 years ago
Jonathan Mainguy 41049042de remove blank lines from htpasswd file
used standard mktemp()
9 years ago
Lucas David Traverso 3b954edab2 django_manage: Use shebang in manage.py instead of hardcode python 10 years ago
Petros Moisiadis 3c605d4aba make migrate command idempotent with django built-in migrations
Django since version 1.7 has built-in migrations, so no need to have south installed with recent django versions. The 'migrate' command works with built-in migrations without any change, but the output is different than the output produced by south, which breaks idempotence. This commit fixes this.
10 years ago
Florian Apolloner afd0b3fcaa Added os.path.expanduser to app_path in django_manage 10 years ago
Tagir Bakirov 83c6cd04f4 added 'absent' option to supervisorctl 10 years ago
Brian Coca 44ffe73e02 Merge pull request #117 from direvus/apache2-module-word-boundary
Add word boundary in apache2_module regexp
10 years ago
Toshio Kuratomi 477391bb24 Better error messages if a2enmod/a2dismod are not found 10 years ago
Chris Church d9360a7613 Update docs, add example of using django_manage to run other commands. 10 years ago
Alex King 18183caf86 Extend hashes that can be specified by crypt_scheme beyond those
understood by Apache/Nginx.
10 years ago
Peter Bwire 1710b45075 Update django_manage to add database option for migrate
Allow passing the database option to the django_manage module for migrations. This is usefull in situations where multiple databases are used by a django application.
10 years ago
Tomasz Kontusz 18e641838a supervisorctl: Don't try to start a starting program
Starting a "STARTING" program throws ERROR (already started),
so don't do that.
10 years ago
Lorin Hochstein d7db09a0eb django_manage: expand ~ in app_path parameter
Allow users to specify app_path parameters that contain ~, for example:

app_path=~/myproject
10 years ago
Brendan Jurd 6157a6552f Add word boundary in apache2_module regexp
Add a word boundary \b to the regexp for checking the output of a2{en,dis}mod,
to avoid a false positive for a module that ends with the same text as the
module we're working on.

For example, the previous regexp r'.*spam already enabled' would also match
against 'eggs_spam already enabled'.

Also, get rid of the redundant '.*' from the end of the regexp.
10 years ago
Michael DeHaan 385a037cd6 package files 10 years ago
Michael DeHaan c8e1a2077e file extensions! 10 years ago
Michael DeHaan 417309a626 Restructuring. 10 years ago
Michael DeHaan 73123b69fa Move modules into subdirectory. 10 years ago
James Cammarata ba062de744 Merge branch '7736' of https://github.com/kcghost/ansible into kcghost-7736 10 years ago
Michael DeHaan 76eb5064f4 Merge pull request #7520 from jjneely/a2enmod
apache2_module module fixes
10 years ago
Casey Fitzpatrick c0543db5f3 apache2_module handles multiple lines of output, fixes #7736 and #7857 10 years ago
Joel Crocker df0f2b9c52 Updates django_manage so it populates VIRTUAL_ENV
Virtualenv's activate script sets the VIRTUAL_ENV environment variable to the path of the virtualenv. Checking this variable is a reasonably common way to verify that execution is happening in a virtualenv. It would be convenient if this module's virtualenv handling set this environment variable.
10 years ago
Brian Coca ac14a8d6ad unified calls to fs function vs duplicate functions for file and
directory
10 years ago
Jack Neely 1452a058df apache2_module: Handle dep resolution
The apache2_module module did not properly handle when a2enmod would
handle apache module dependancies.  It would always return a state of
changed.  I've updated the regular expression to properly parse that
output as well as the normal output.  A good example of this is the
mod_proxy_http module.
10 years ago
Jack Neely 14ee2e4505 apache2_module: whitespace cleanup
Remove trailing whitespace.
10 years ago
Michael Warkentin c826b8573c Update `command` description
The docs were a little bit out of date with what commands are available to be run. They also didn't explain that you could pass custom commands - I almost went down the path of trying to run our custom management commands with the generic Ansible `command` module.
10 years ago
Christian Berendt 0a35850927 made enabled/disabled checks of apache2_module workable 11 years ago
Joel Schuweiler c1470db8fd Fix example 11 years ago
James Tanner 941d89cf5f Fix version_added for a few parameters in django_manage 11 years ago
Michael DeHaan 54180817cd Add version_added info + changelog 11 years ago