Commit Graph

5657 Commits (995ef374dbdfd068d8cb46140230da28657ff6d9)
 

Author SHA1 Message Date
Arturas Slajus 0ea0a2c6d7 datadog_event module requires urllib2, not httplib2. 11 years ago
martin f. krafft 420f7d7ac6 Introduce non-purged package status
A package may be removed but not purged with APT. The only way to
identify this state is by looking at the list of installed files of
a package. Even if the package has no files installed, this list will be
non-empty until the package is removed:

  # python -c "import apt; c=apt.Cache(); c.update(); c.open(); p=c['ruby1.8']; print p, p.installed, p.installed_files"
  <Package: name:'ruby1.8' id:1425> None [u'']

  # dpkg --purge ruby1.8
  (Reading database ... 27904 files and directories currently installed.)
  Removing ruby1.8 ...
  Purging configuration files for ruby1.8 ...

  # python -c "import apt; c=apt.Cache(); c.update(); c.open(); p=c['ruby1.8']; print p, p.installed, p.installed_files"
  <Package: name:'ruby1.8' id:1425> None []

See http://bugs.debian.org/712749 too.

If a package is not marked installed but it still 'has_files', then it
should be processed if the request is to purge it.

Signed-off-by: martin f. krafft <madduck@madduck.net>
11 years ago
martin f. krafft 8e37a2bec9 Fix purging of packages
A small error in the reuse of a variable caused packages to never get
purged. This commit fixes that.

Signed-off-by: martin f. krafft <madduck@madduck.net>
11 years ago
George Miroshnykov c642ba77ae Added basic support for hash_behaviour=merge in roles
Dict vars passed to roles are now properly merged
instead of simply overriding dict vars that are
coming from vars_files.
11 years ago
Jesse Keating 1074896105 make name the parameter, with hostname as alias
name is used throughout Ansible, it's the "standard". This change
applies that standard to the add_host routine and updates the docs to
reflect that. Related to https://github.com/ansible/ansible/pull/3254
11 years ago
Lorin Hochstein 1ef1b03bf6 django_manage: Pass --noinput to migrate
The django 'migrate' command should receive the --noinput command,
otherwise it can block waiting for user input.
11 years ago
Patrick Callahan b5b862fe6f bug fix: modify get_device_facts to handle servers with multiple pci domains
On machines with multiple pci domains get_device_facts would fail to
find a matching pci device causing setup to fail. Also on some platforms
there is additional information between the pci information and 'host'.
Modified get_device_facts to call lspci with the -D option and modified
the regex to account for the pci domain and to be more selective.
11 years ago
Tim Gerla f2cf8d3e67 Fine-tune Ansible control system OS requirements a bit 11 years ago
Michael DeHaan fc2d25eb82 Merge pull request #3127 from bennojoy/devel
bug fix for #3077, environment settings for script
11 years ago
Michael DeHaan 575e052c6c Merge pull request #3147 from toshywoshy/setup_mtab_without_bind
changed get_mount_facts to ignore mount types 'none'
11 years ago
Michael DeHaan 132c89e681 Merge branch 'callbackinit' of git://github.com/sergevanginderachter/ansible into devel 11 years ago
Michael DeHaan 51bda285bd update changelog 11 years ago
Michael DeHaan 1e3ab98a13 Merge pull request #3219 from arturaz/devel
datadog_event module: submit your events to DataDog service.
11 years ago
Michael DeHaan dd7f7d5593 Merge branch 'file_hard' of git://github.com/bcoca/ansible into devel
Conflicts:
	library/files/file
11 years ago
Michael DeHaan e90d0be199 Update the changelog with everything that has happened so far. 11 years ago
Michael DeHaan 61ac8d03af Clarify module docs 11 years ago
Michael DeHaan 31b63b033b Merge conflict 11 years ago
Michael DeHaan 96134d003e Merge remote branch 'origin/devel' into devel 11 years ago
Michael DeHaan 51ba3d8c3d Merge pull request #3230 from sayap/openrc
Add OpenRC support to the service module.
11 years ago
Michael DeHaan 273f37b394 Merge pull request #3255 from jlund/sha256-example-cleanup
Removed merge conflict header
11 years ago
Michael DeHaan 7193ff5fbf Merge pull request #3250 from gildegoma/more_magical_ansible_ssh_user
Make 'ansible_ssh_user' available in templates
11 years ago
Michael DeHaan 2f1420f071 Merge pull request #3258 from j2sol/apt-doc
pkg option of apt is not required
11 years ago
Michael DeHaan 43fba4e307 Merge pull request #3256 from DMBuce/pkgbuild-update
Fix typo in PKGBUILD
11 years ago
Michael DeHaan cbd54f6c2e Merge pull request #3257 from jimt/patch-1
spelling ansbile->ansible
11 years ago
Jesse Keating 86bc2ec08a pkg option of apt is not required
You can use apt module with update_cache and without specifying a
package. Update the docs to reflect this.
11 years ago
Jim Tittsler 240a52906e spelling ansbile->ansible 11 years ago
Buce e04ee519ef Fix typo in PKGBUILD
ansbile.cfg -> ansible.cfg
11 years ago
Joshua Lund bb4de94937 Removed merge conflict header 11 years ago
Michael DeHaan b4358d1300 Merge branch 'apt_key_file' of git://github.com/veeti/ansible into devel
Conflicts:
	library/packaging/apt_key
11 years ago
Michael DeHaan a94e404a97 Merge pull request #3236 from lwade/ec2_placementzone
Added placement_group parameter for cluster compute. Issue 3232.
11 years ago
Tim Gerla 6f426f7986 Explicitly mention the Linux requirement for the Ansible machine, and remove a vestigial heading. 11 years ago
Michael DeHaan 89ee762ab7 Merge pull request #3247 from SirScott/vars_prompt_docs
Document the 'default' argument for vars_prompt.
11 years ago
Michael DeHaan 583b3e5957 Merge pull request #3251 from jlund/sucess-typo-fix
Fixed a few small typos
11 years ago
Michael DeHaan 2123507315 Merge branch 'sha256' of git://github.com/jlund/ansible into devel
Conflicts:
	library/network/get_url
11 years ago
Michael DeHaan 92754065bf Remove debug statement. 11 years ago
Joshua Lund ba853b8c1a Fixed a few small typos 11 years ago
Michael DeHaan bac81be3f9 Add undefined variables feature to example config file. 11 years ago
Michael DeHaan 5a504e3a3b Tweak error messages for undefined variables feature. 11 years ago
Michael DeHaan 637983cf31 cleanup example config file + Squashed commit of the following:
commit c36b66dc952dfff91043ecbca56cf3f1f8f00703
Merge: 240d7bf f4cf934
Author: Michael DeHaan <michael@ansibleworks.com>
Date:   Tue Jun 18 13:04:51 2013 -0400

    Merge branch 'unevaluated-vars' of git://github.com/lorin/ansible into lorin_undefined

    Conflicts:
    	lib/ansible/runner/__init__.py

commit f4cf934367
Merge: 2531440 07a1365
Author: Lorin Hochstein <lorin@nimbisservices.com>
Date:   Thu Jun 6 11:07:41 2013 -0400

    Merge branch 'devel' into unevaluated-vars

commit 253144045c
Author: Lorin Hochstein <lorin@nimbisservices.com>
Date:   Thu Jun 6 11:06:37 2013 -0400

    Fail template from file on undefined vars

    If config option is set, raise an exception if templating from a
    file and a variable is undefined.

commit aecb71d8b7
Author: Lorin Hochstein <lorin@nimbisservices.com>
Date:   Wed Jun 5 17:12:12 2013 -0400

    Add fail_on_undefined flag

    Add a fail_on_undefined flag to the template and template_from_string methods.

    If this flag is true, then re-raise the ninja2.excpetions.UndefinedError instead of
    swallowing it.

commit cbb1808f05
Merge: d4bbf49 41425fb
Author: Lorin Hochstein <lorin@nimbisservices.com>
Date:   Wed Jun 5 16:14:12 2013 -0400

    Merge branch 'devel' into unevaluated-vars

commit d4bbf492b0
Author: Lorin Hochstein <lorin@nimbisservices.com>
Date:   Mon Jun 3 19:46:13 2013 -0400

    template: Raise UndefinedError exception

    In template_from_string, raise an undefined error if it occurs.

    Have the caller catch it and throw an AnsibleUndefinedVariable

commit c947802805
Merge: 8d919d6 be33bcf
Author: Lorin Hochstein <lorin@nimbisservices.com>
Date:   Mon Jun 3 10:09:43 2013 -0400

    Merge branch 'devel' into unevaluated-vars

commit 8d919d6c97
Merge: 0f68ad8 b8630d2
Author: Lorin Hochstein <lorin@nimbisservices.com>
Date:   Thu May 30 16:27:48 2013 -0400

    Merge branch 'devel' into unevaluated-vars

commit 0f68ad8193
Author: Lorin Hochstein <lorin@nimbisservices.com>
Date:   Thu May 30 14:32:03 2013 -0400

    Optionally fail task on undefined variables

    This patch introduces a new configuration option called
    error_on_undefined_vars, which defaults to false.

    If this option is set to true, then a task which has unevaluated
    variables in its arguments will fail instead of running. Output looks
    like this:

        TASK: [set rabbitmq password] *************************************************
        fatal: [10.20.0.7] => Undefined variables: rabbitmq_user, rabbitmq_password
11 years ago
Gilles Cornu 48fe7ac19d Enlarge scope of 'ansible_ssh_user' magic variable
Allow to use ansible_ssh_user variable in `sudo_user` or `when` clauses
11 years ago
Scott Sturdivant cc12b85e49 Document the 'default' argument for vars_prompt. 11 years ago
Michael DeHaan 240d7bf197 Use new site URLs in README 11 years ago
Michael DeHaan 25b43cf6ec Merge pull request #3231 from jpmens/docs_more
Docs: consistently format playbook EXAMPLES
11 years ago
Michael DeHaan cadecc0a52 Merge pull request #3240 from SirScott/vars_prompt_defaults
Display default value in prompt when using vars_prompt
11 years ago
Michael DeHaan 6d19150bb1 Merge pull request #3242 from bcoca/mount_findbin
now mount/unmount binaries are searched for instead of hardcoded
11 years ago
Vincent Viallet 9af24f5345 Merge branch 'a_devel' into digitalocean 11 years ago
Vincent Viallet d4b5122ad9 Rename digital ocean module to digital_ocean, add documentation. 11 years ago
Brian Coca c9c7b01620 now mount/unmount are searched for instead of hardcoded
Signed-off-by: Brian Coca <briancoca+dev@gmail.com>
11 years ago
Scott Sturdivant b10b676158 Print the default value if one is provided. 11 years ago
Veeti Paananen 77159d21da Add apt_key examples for file and data 11 years ago