Commit Graph

120 Commits (373ebaeeb4548e095646fa4580abcfeb90865027)

Author SHA1 Message Date
Jan Malte Gerth 6a78349f65 reuse already split output for filtering (#4310)
there is no need to call out.split('\n') multiple times (line 275 and 277)
8 years ago
Brian Coca 2f0f04437b made password no_log in htpasswd 8 years ago
Michael Scherer 5846a5549d Port htpasswd to python3 compatible syntax (#3672) 8 years ago
n0trax 1eac4c5608 Add checkmode and reduce code duplication (#2417)
- httpd removed from control_binaries
- check for enabled module after running a2enmod/a2dismod
- fail, if user has no permissions to run control_binary
- reduce code duplication
9 years ago
Brian Coca 53c4827da5 added missing version_added 9 years ago
Pål Nilsen eb6192c050 Add optional force parameter for apache2_module (#3251)
* Add optional force parameter for apache2_module

Fixes #2499

* Add documentation for the force parameter

* Clarify in description that -f(orce) is a Debian parameter
9 years ago
Michael Scherer 3a1ffa12f1 Set the locales to avoid issue with screenscrapping
See https://github.com/ansible/ansible-modules-core/pull/2462 for

details on why this could happen
9 years ago
Toshio Kuratomi 832e81e691 Set some module parameters to type=path 9 years ago
Brian Coca c36bd28d08 Merge pull request #2641 from aaronkurtz/devel
Remove 'cache_table' from required params
9 years ago
Graham Ullrich e002161e6c Update django_manage documentation
As of Ansible 2.x, invocation of Django's ```manage.py``` requires a valid "shebang". Additionally, ```manage.py``` must be executable.
The old invocation was hardcoded as ```python manage.py ...``` while the new invocation is ```./manage.py ...```. See [this PR](https://github.com/ansible/ansible-modules-core/pull/1165).
This change allows more flexibility for which Python interpreter is invoked, but breaks existing deployment when ```manage.py``` is not properly configured. This documentation update adds a note explaining the new requirements for ```manage.py```.
9 years ago
Aaron Kurtz b303d760e6 Remove 'cache_table' from required params
Starting in Django 1.7, the createcachetable command looks for cache
table names in the CACHES settings dictionary, so cache_table is no
longer required, but is still allowed.
9 years ago
Toshio Kuratomi 191347676e When the password file does not exist and we're making sure the user isn't in the password file, change error into a warning
Warning catches typos in the filename.  Since the playbook is saying
"make sure this user doesn't have an entry" it makes more sense to warn
than to error.

Fixes #2619
9 years ago
Greg DeKoenigsberg 57dcf2c9dd @lorin stepping down as maintainer 9 years ago
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