Commit Graph

1130 Commits (969c3feb13393af7ad2e0c36ad198d5ab99abf98)
 

Author SHA1 Message Date
Brendan Beveridge 2635195185 Fixes issue #315
This adds some logic when usings groups possibly in combination with append

  if just specifying groups and the current groups do not match the list
     set groups
  if specifying groups with append and any group thats not in the current groups
     set groups with -a
12 years ago
Seth Vidal cd28d82639 fix indentation 12 years ago
Seth Vidal 279e5e4522 fix the get_hosts() error in get_groups returning a dict not a list of group objects 12 years ago
Peter Sankauskas d814136ec9 Code was adding '-a' even when the user was already in the desired groups causing usermod to fail since there was no '-G' option. This is duplicate code (3 lines) from the 'group' section, so could be improved, but it works. 12 years ago
Cosmin Luță fba4d9232d Prevent facter stderr messages from confusing ansible 12 years ago
Michael DeHaan dcbe48e2d4 Update development changelog. 12 years ago
Michael DeHaan eda2333b24 Update manpage to mention -U (--sudo-user). 12 years ago
Michael DeHaan 05545e3735 Fixup the previous sudo_user support patch to work with playbooks. 12 years ago
Jim Richardson 5582e6a4f1 sudo -u works now. Needs testing and maybe a bit of cleanup 12 years ago
Jim Richardson 2cd8d7b5e4 first bit of getting sudo -u functionality 12 years ago
Jim Richardson 8d39ae709c sudo -u works now. Needs testing and maybe a bit of cleanup 12 years ago
Jim Richardson 93a20a33e9 first bit of getting sudo -u functionality 12 years ago
Michael DeHaan 36559badd5 Merge pull request #316 from skvidal/devel
fix up service module to make it start processes that are listed to be
12 years ago
Michael DeHaan f718fc99b7 Add missing file 12 years ago
Michael DeHaan 157d21b1c3 Add tests for new advanced inventory features (groups of groups, group variables) in the default INI format file. 12 years ago
Michael DeHaan 1a00e2635e Further work on making the YAML inventory parser use the new inventory objects. 12 years ago
Michael DeHaan a8f0b5fd06 Fix playbooks such that they work with external inventory scripts. We really want to find out why the 'all'
group isn't available, but group vars don't make sense for external inventory anyway.
12 years ago
Michael DeHaan 256377166a Reinstate external inventory script support this time using the new more OO-ey inventory system.
Next up: YAML format.
12 years ago
Michael DeHaan 5730a29814 missing files 12 years ago
Michael DeHaan 0669ce858a Refactored inventory to make it object oriented, need to make YAML format and executable script
format compatible with this still, and add some tests for INI-style groups of groups
and variables.
12 years ago
Michael DeHaan 39e791a1d3 Log last execution of ansible-pull to /var/log/ansible-pull.log
TODO: logrotate script and append to log instead.
12 years ago
Michael DeHaan 99a7522b03 Update devel branch version in RPM spec. 12 years ago
Seth Vidal 81418afbbb fix up service module to make it start processes that are listed to be
running and to report errors from starting them
12 years ago
Michael DeHaan b300aac551 Include files are no longer to be considered Jinja2 templates, but individual THINGS
in included files can still be templated just like top level playbooks.  Resolves
some issues about statements being evaluated before facts were available
12 years ago
Michael DeHaan adca320490 Change defaults so people have to make conscious decisions about pull setup. 12 years ago
Michael DeHaan a33320d03d Add some comments to ansible-pull and the example playbook 12 years ago
Michael DeHaan e54eeb7629 Merge branch 'local' of https://github.com/sfromm/ansible into devel 12 years ago
Stephen Fromm 84c9caa805 Simplify ansible-pull to just invoke ansible and ansible-playbook
This eliminates the creation of runner and playbook instances and just
invokes the processes ansible and ansible-playbook.
12 years ago
Stephen Fromm 23ff967f38 Copy inventory file to client 12 years ago
Stephen Fromm 672794f586 Add ansible-pull
A first stab at a pull-based model for ansible.  This does two things:
    1. Invoke the git module via Runner to set up a git repository on the
       localhost.  It sets up Runner to use transport='local' and forces
       the inventory to just 'localhost'.
    2. Run any playbooks provided.  By default, this wants to run the
       playbook local.yml.  This also sets transport='local' and sets
       the host_list to a list: localhost, fqdn, and hostname.
The reason for setting the host_list and not using override_hosts is
because there may be plays in the playbook that are not meant for a
specific host.  That is, if the git repository is for the entire site
and not host-specific, you don't want to override hosts and apply all
plays to any given host.  This has the downside of potentially running a
play three times if the play is defined for 'hosts: all'.
12 years ago
Stephen Fromm 3803b27f6c Add playbook and template to set up ansible-pull
Playbook will install ansible, create directory where git checkout goes,
and set up a cron job to run ansible-pull.
12 years ago
Michael DeHaan df61a65344 Merge pull request #294 from jhoekx/inventory-hostname
Define 'inventory_hostname' variable for hosts.
12 years ago
Michael DeHaan fe90650311 Merge pull request #295 from jhoekx/user-existing-groups
Group order in user module should not matter.
12 years ago
Jeroen Hoekx 2c8fbdbd20 Group order in user module should not matter.
Groups are not necessarily returned in the defined order, especially when the user already existed before ansible started managing the system.
12 years ago
Jeroen Hoekx 03541baba7 Define 'inventory_hostname' variable for hosts. 12 years ago
Michael DeHaan 28cf753756 changelog update 12 years ago
Michael DeHaan 5b8ee8488d update development changelog 12 years ago
Michael DeHaan 02efcdced6 Merge branch 'devel' of https://github.com/skvidal/ansible into skvidal-devel 12 years ago
Seth Vidal 38ea61054f if a playbook has no vars - still include the global vars 12 years ago
Seth Vidal dc35dd99c0 inventory group 'all' variables are global variables
applied to every host and available all over
they are read in so that ones defined first can be used to define
the later ones.
12 years ago
Rafal Lewczuk 3de61fb180 Fix: file module does not remove dangling symlinks 12 years ago
Rafal Lewczuk 06e99ee75e Trivial fix: make PyDev happy (imports). 12 years ago
Michael DeHaan 7ff1679007 Merge pull request #303 from jkleint/devel
Remove command timeout.
12 years ago
Michael DeHaan 548b551bfd Merge pull request #306 from leucos/devel
Adds support for Ubuntu style update-rc.d
12 years ago
Michel Blanc a7e4da92db Fixes _find_binaries not using globals
_find_binaries now sets the right globals
Binaries are now properly populated (reverse path/binary for loops)
12 years ago
Michel Blanc 572868c9e1 Adds support for Ubuntu style update-rc.d
Checks if update-rc.d (Ubuntu) or chkconfig (RHEL) should be used.
Adds basic bin path search for those binaries
Adds 'enable' and 'disable' options for 'enable' command since it's the
arguments that update-rc.d uses (this might be somewhat confusing to
have a command line with 'enable=enable', but probably mkes sense for
Ubuntu users).
Allows use of mixed case for 'list' and 'state' commands.
12 years ago
Michael DeHaan 9ad4e7d149 Merge pull request #300 from sfromm/git
Updates for git module
12 years ago
Michael DeHaan 5fe677645d Merge pull request #302 from sfromm/selinux
Set default selinux context with '_default'
12 years ago
Michael DeHaan 52efc90326 Merge pull request #299 from pas256/patch-1
test-module arguments file location
12 years ago
John Kleint cbbaee8a9f Remove command timeout. 12 years ago