Michael DeHaan
6c0511a2d0
Merge pull request #330 from jhoekx/yaml-inventory-list
...
Yaml inventory variable list
13 years ago
Jeroen Hoekx
1d28212f86
Inventory: undefined group -> ungrouped.
...
Also change test name collision.
13 years ago
Jeroen Hoekx
3b40158961
Inventory: support list of vars in host.
13 years ago
Michael DeHaan
b5f6558872
Merge pull request #327 from mrproper/devel
...
Devel - fix issue #315
13 years ago
Brendan Beveridge
f09ec78fbd
Merge remote-tracking branch 'ansible-origin/devel' into devel
...
Conflicts:
library/user
13 years ago
Michael DeHaan
f2e8836c94
Merge pull request #324 from lcosmin/devel
...
Prevent facter stderr messages from confusing ansible
13 years ago
Michael DeHaan
a589ee4d15
Reverting to apply correct attribution.
13 years ago
Michael DeHaan
de00dacff9
Don't let facter spew things to stderr and confuse Ansible, which now blends stdout/stderr due to paramiko
...
pty usage.
(This commit from lcosmin, manually applied due to github crossup on my part -- MPD)
13 years ago
Michael DeHaan
95069b7ee3
Merge pull request #326 from pas256/patch-2
...
Fixing append when user already in desired groups
13 years ago
John Kleint
db65cf5a90
Fix non-sudo execution, add --sudo-user to ansible-playbook.
13 years ago
Brendan Beveridge
5d63c6b204
remove now useless append check in user_mod
13 years ago
Brendan Beveridge
96c0ee0efc
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
13 years ago
Seth Vidal
42b55a07cd
fix indentation
13 years ago
Seth Vidal
f41fb90d78
fix the get_hosts() error in get_groups returning a dict not a list of group objects
13 years ago
Peter Sankauskas
6a4e8d7f4c
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.
13 years ago
Cosmin Luță
472395bd77
Prevent facter stderr messages from confusing ansible
13 years ago
Michael DeHaan
d6e56dee87
Update development changelog.
13 years ago
Michael DeHaan
66ba6b023c
Update manpage to mention -U (--sudo-user).
13 years ago
Michael DeHaan
4694c3fbba
Fixup the previous sudo_user support patch to work with playbooks.
13 years ago
Jim Richardson
a1ed9fc546
sudo -u works now. Needs testing and maybe a bit of cleanup
13 years ago
Jim Richardson
abcfdbeeaf
first bit of getting sudo -u functionality
13 years ago
Jim Richardson
4d623d0356
sudo -u works now. Needs testing and maybe a bit of cleanup
13 years ago
Jim Richardson
98dda72be1
first bit of getting sudo -u functionality
13 years ago
Michael DeHaan
cbbd9d8f3a
Merge pull request #316 from skvidal/devel
...
fix up service module to make it start processes that are listed to be
13 years ago
Michael DeHaan
85a04a2517
Add missing file
13 years ago
Michael DeHaan
a7b9bf958d
Add tests for new advanced inventory features (groups of groups, group variables) in the default INI format file.
13 years ago
Michael DeHaan
46c661b3e3
Further work on making the YAML inventory parser use the new inventory objects.
13 years ago
Michael DeHaan
c804752835
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.
13 years ago
Michael DeHaan
3fb2d38514
Reinstate external inventory script support this time using the new more OO-ey inventory system.
...
Next up: YAML format.
13 years ago
Michael DeHaan
d9bec842ef
missing files
13 years ago
Michael DeHaan
4011d15faa
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.
13 years ago
Michael DeHaan
958832fb1f
Log last execution of ansible-pull to /var/log/ansible-pull.log
...
TODO: logrotate script and append to log instead.
13 years ago
Michael DeHaan
23c6a0985c
Update devel branch version in RPM spec.
13 years ago
Seth Vidal
2c416b8f06
fix up service module to make it start processes that are listed to be
...
running and to report errors from starting them
13 years ago
Michael DeHaan
81b8190fc5
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
13 years ago
Michael DeHaan
aec8995fd9
Change defaults so people have to make conscious decisions about pull setup.
13 years ago
Michael DeHaan
00ea71d8de
Add some comments to ansible-pull and the example playbook
13 years ago
Michael DeHaan
6be85f4fc5
Merge branch 'local' of https://github.com/sfromm/ansible into devel
13 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.
13 years ago
Stephen Fromm
23ff967f38
Copy inventory file to client
13 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'.
13 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.
13 years ago
Michael DeHaan
df61a65344
Merge pull request #294 from jhoekx/inventory-hostname
...
Define 'inventory_hostname' variable for hosts.
13 years ago
Michael DeHaan
fe90650311
Merge pull request #295 from jhoekx/user-existing-groups
...
Group order in user module should not matter.
13 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.
13 years ago
Jeroen Hoekx
03541baba7
Define 'inventory_hostname' variable for hosts.
13 years ago
Michael DeHaan
bcd713a9f3
changelog update
13 years ago
Michael DeHaan
8ec60e0b4e
update development changelog
13 years ago
Michael DeHaan
3eb00ec1e7
Merge branch 'devel' of https://github.com/skvidal/ansible into skvidal-devel
13 years ago
Seth Vidal
38ea61054f
if a playbook has no vars - still include the global vars
13 years ago