Commit Graph

1163 Commits (244b92355991fa9b237fa18a6890f8d5e6ff4fac)
 

Author SHA1 Message Date
Michael DeHaan 244b923559 No longer need to calculate setup metadata location since we don't write
the setup file to disk.
13 years ago
Michael DeHaan 61d8e2e7c7 with_items should be processed inside the task class, also make first_available_file
and with_items incompatible.  Most cases that would need this could be solved
with vars_files.
13 years ago
Michael DeHaan 706cfd9ade Misc cleanup -- moved function out of utils, removed debug statement. 13 years ago
Michael DeHaan 19a2fc00dc Clean up imports in utils, add nicer recursion depth limit check. 13 years ago
Michael DeHaan 60d64251f8 Allow gather_facts: False in a playbook as a way of disabling the fact step if you know
you aren't going to need it.
13 years ago
Michael DeHaan 3466ad5e45 Update changelog 13 years ago
Michael DeHaan 64c51ade1e Change the way we do with_items to make them happen next to each other in runner, which eliminates the problem of with_items and vars_files sometimes not playing nice with each other.
(Also a fix for the user module error handling when the user
is not present at the time of the return.  This can only really be caused by multiple ansible executions).
13 years ago
Michael DeHaan 6c84ec72c6 changelog update 13 years ago
Michael DeHaan 028f216689 Error handling and magic around with_items, to let you know when variables are usable inside it and when not. 13 years ago
Michael DeHaan 102b22be1f Make the logic behind vars_files smarter, so host specific vars go into the setup cache, but other variables
are usable top level.  This allows vars_files data to be used, most of the time, just fine in with_items,
(error handling pending) but is mostly a memory and efficiency thing.
13 years ago
Michael DeHaan 15b2b3a020 Warn if something loaded by vars_files is not a dictionary 13 years ago
Michael DeHaan 279b5965b8 Much streamlining around setup steps in playbooks, now only run setup once per play. 13 years ago
Michael DeHaan 931f9f1a61 Setup module no longer saves to disk, as templates are mostly useful in playbooks and this allows lots of simplifications
around file pathing and removes occasional permissions conflicts depending on how things are used.
13 years ago
Michael DeHaan 2a2017f295 Changelog update 13 years ago
Michael DeHaan 60f295f7a0 Squashed commit of the following:
commit 4430ce3eefcdff0b0ceffea0ef66ea8e876a807d
Merge: 631783b 649963c
Author: Michael DeHaan <michael.dehaan@gmail.com>
Date:   Thu Jul 12 01:28:43 2012 -0400

    Merge branch 'host-groups' of https://github.com/dagwieers/ansible into daggroups

commit 649963ca2c
Author: Dag Wieërs <dag@wieers.com>
Date:   Thu Jul 12 23:01:00 2012 +0200

    Added comments in the example yaml file as requested

commit 7f9718f185
Author: Dag Wieërs <dag@wieers.com>
Date:   Thu Jul 12 22:49:38 2012 +0200

    Add the default nose color too, to test specific overrides

commit eb63b9e899
Author: Dag Wieërs <dag@wieers.com>
Date:   Thu Jul 12 22:44:35 2012 +0200

    Introduce comics and cartoons to test yaml groups defined on a per-node basis

commit aa13d23307
Author: Dag Wieërs <dag@wieers.com>
Date:   Thu Jul 12 19:33:15 2012 +0200

    A small fix to revert to old state

commit 264ebaa77c
Author: Dag Wieërs <dag@wieers.com>
Date:   Thu Jul 12 19:31:51 2012 +0200

    Combine both yaml unit tests into one example file

commit 7db49a8048
Author: Dag Wieërs <dag@wieers.com>
Date:   Thu Jul 12 16:46:53 2012 +0200

    Might as well fix this too

commit f36c6c8c5b
Author: Dag Wieërs <dag@wieers.com>
Date:   Thu Jul 12 16:42:00 2012 +0200

    Added unit tests for host-groups patch

    For the unit test I chose to keep the original yaml file in place as a reference.

    This patch also includes a fix.

commit a96f681352
Author: Dag Wieërs <dag@wieers.com>
Date:   Thu Jul 12 12:30:43 2012 +0200

    Allow groups to be defined on a per-host basis

    This makes it possible to define on a per-host basis what groups a host is in.
    When managing a large set of systems it makes it easier to ensure each of the
    systems is defined in a set of groups (e.g. production/qa/development,
    linux/solaris/aix) rather than having to add systems to multiple disconnected
    groups.

    ----
      - host: system01

      - host: system02

      - host: system03

      - group: linux
        hosts:
        - system01
        - system02

      - group: solaris
        hosts:
        - system03

      - group: production
        hosts:
        - system01
        - system03

      - group: qa
        - system02

      - group: dbserver
        hosts:
        - system01

      - group: ntpserver
        hosts:
        - system02

      - group: webserver
        - system03
    ----

    Can be redefined as:

    ----
      - host: system01
        groups: [ linux, production, dbserver ]

      - host: system02
        groups: [ linux, qa, ntpserver ]

      - host: system03
        groups: [ solaris, production, webserver ]
    ----
13 years ago
Michael DeHaan 86c25fd82d Merge pull request #590 from marktheunissen/mysql
The MySQL modules
13 years ago
Mark Theunissen f47cc1693d The MySQL modules 13 years ago
Michael DeHaan 420337b50c Merge pull request #587 from dagwieers/ssh-fetch
Wrong evaluation of a local file before fetching the remote file
13 years ago
Dag Wieërs cb40778b84 Wrong evaluation of a local file before fetching the remote file 13 years ago
Michael DeHaan fd0ed04d19 Merge pull request #586 from tima/env-private-key-fix
The default private key file was getting set incorrectly from environment variables. My bad.
13 years ago
Timothy Appnel 84fa9dcaee The default private key file was getting set incorrectly from environment variables. My bad. 13 years ago
Michael DeHaan b1c0fcd1d3 Merge pull request #583 from jeremysmitherman/boolean_parameters
Removed unused recurse option in file module.
13 years ago
Michael DeHaan 98eec45525 Merge pull request #584 from gottwald/devel-cowsayUbuntu
Enabled cowsay support for Ubuntu
13 years ago
Ingo Gottwald 26aa4e2469 Enabled cowsay support for Ubuntu 13 years ago
Jeremy Smitherman e5a6627d10 Removed unused recurse option in file module. 13 years ago
Michael DeHaan fd29ecc24b changelog update 13 years ago
Michael DeHaan bcd0001cb1 Bring the cobbler external inventory script up to date with current usage (--list, --host hostname) 13 years ago
Michael DeHaan 611e5b0c90 Make adding tags to a playbook work as shorthand to tagging all tasks in the play. 13 years ago
Michael DeHaan cf313cde96 Soft import of paramiko since we have the SSH and local connection types now. Packaging will still
require it.
13 years ago
Michael DeHaan a765deccce Allow top level playbook files to import other playbook files, added some basic
playbook structure checking.
13 years ago
Michael DeHaan 87e911c405 changelog update 13 years ago
Michael DeHaan dc4ebab345 Merge pull request #576 from davehatton/adjust_playbook_output_formating
improve output formating for playbook
13 years ago
Michael DeHaan 969c3feb13 Allow include statements from plays to specify tags (see tags.yml example file).
Also be smart and don't run a play at all if no tasks in the play match any of the tags specified.  This includes not running the setup actions!
13 years ago
Michael DeHaan 83f23ef861 Basic support for tagging tasks and selecting a subset of tasks to run with --tags. 13 years ago
Michael DeHaan fd7e96d33e Merge pull request #578 from jeremysmitherman/boolean_parameters
Removed boolean parameter setting from user module.
13 years ago
Michael DeHaan 626e4cb003 Merge pull request #572 from goozbach/devel
fixes #569 apt module problems on old versions of apt-python
13 years ago
Jeremy Smitherman ecacb67d31 Added yes/no to user options instead of False comparison for force and remove options for user module 13 years ago
Michael DeHaan 3f5c4772be Merge pull request #575 from jeremysmitherman/apt-force
Added cmd modifications to use a force-yes option for apt module
13 years ago
Michael DeHaan 949f8b8fc5 Merge pull request #571 from sfromm/group
Group module fixes
13 years ago
Michael DeHaan 36177cc935 Merge pull request #573 from sfromm/user
Minor tweak to user module
13 years ago
Dave Hatton 7ecdb83800 improve output formating for playbook 13 years ago
Jeremy Smitherman a35a0f885e Added cmd modifications to use a force-yes option for apt module 13 years ago
Derek Carter f38b9d1ca7 added filter for future warning 13 years ago
Stephen Fromm ac3341cc12 Minor fix to user module to further streamline setting 'changed' flag 13 years ago
Derek Carter e261d49acc fixes #569 apt module problems on old versions of apt-python (namely debian 5.0) 13 years ago
Stephen Fromm 3a5f2126a6 Fixes to group module for better error handling
Takes a lot of the fixes to the user module and applies them to the
group module: provide stdout/stderr in result if available and call
fail_json() if the attempted action fails.
13 years ago
Michael DeHaan 3235da074e Merge pull request #568 from sfromm/user
User modules fixes
13 years ago
Michael DeHaan 8bb41bc627 Merge pull request #566 from jeremysmitherman/service-no-pid
Added additional output to service status checker
13 years ago
Michael DeHaan 25986fa181 Merge pull request #567 from skvidal/devel
modify user module so that password is NEVER logged before the command runs
13 years ago
Stephen Fromm 09f025b7a0 Fixes to user module for better error handling
The user module now returns the output, both stdout and stderr, from
useradd, usermod, and userdel.  This should help debug cases why one of
those commands fail.  In addition, the user module will now call
fail_json() when the attempted command failed so as to properly
communicate a failure in a playbook.
13 years ago