Jim Richardson
4c2fd25777
ANSIBLE_REMOTE_TMP environment variable sets where ansible will stuf tmp files on remote host. Default is /var/tmp for root, and $HOME/.ansible/tmp for non-root
2012-05-09 11:25:45 -07:00
Michael DeHaan
c7c38e9a61
Merge pull request #342 from jhoekx/fix-jinja-newline
...
Preserve trailing newline after templating.
2012-05-09 05:33:10 -07:00
Jeroen Hoekx
55fbc95243
Preserve trailing newline after templating.
...
Jinja seems to eat trailing whitespace. A lot of tools complain about this: iptables-restore, iscsid...
2012-05-09 10:31:32 +02:00
Michael DeHaan
1dbea82350
Merge pull request #331 from mgwilliams/bug-fetch-module
...
Template dest and src parameters
2012-05-08 11:11:13 -07:00
Michael DeHaan
1c652492e1
Merge pull request #335 from sfromm/user
...
User module fix
2012-05-08 11:10:37 -07:00
Stephen Fromm
5506147033
Move import of spwd under a try block
...
Resolves issue #333 . If spwd is not available, the password will
be set regardless.
2012-05-08 10:40:44 -07:00
Matthew Williams
a07f69cd54
Template dest and src parameters
2012-05-08 07:12:30 -07:00
Michael DeHaan
b2485850bf
Revert "fix indentation"
...
This reverts commit 42b55a07cd
.
2012-05-07 21:46:45 -04:00
Michael DeHaan
893bf90627
Revert "fix the get_hosts() error in get_groups returning a dict not a list of group objects"
...
This reverts commit f41fb90d78
.
2012-05-07 21:46:36 -04:00
Michael DeHaan
a54d9f66e6
Merge pull request #329 from skvidal/devel
...
inventory and indentation
2012-05-08 03:54:41 -07:00
Michael DeHaan
6c0511a2d0
Merge pull request #330 from jhoekx/yaml-inventory-list
...
Yaml inventory variable list
2012-05-08 03:53:46 -07:00
Jeroen Hoekx
1d28212f86
Inventory: undefined group -> ungrouped.
...
Also change test name collision.
2012-05-08 09:44:59 +02:00
Jeroen Hoekx
3b40158961
Inventory: support list of vars in host.
2012-05-08 09:44:29 +02:00
Michael DeHaan
b5f6558872
Merge pull request #327 from mrproper/devel
...
Devel - fix issue #315
2012-05-07 18:18:00 -07:00
Brendan Beveridge
f09ec78fbd
Merge remote-tracking branch 'ansible-origin/devel' into devel
...
Conflicts:
library/user
2012-05-08 10:33:18 +10:00
Michael DeHaan
f2e8836c94
Merge pull request #324 from lcosmin/devel
...
Prevent facter stderr messages from confusing ansible
2012-05-07 17:07:49 -07:00
Michael DeHaan
a589ee4d15
Reverting to apply correct attribution.
2012-05-07 20:07:12 -04:00
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)
2012-05-07 20:05:10 -04:00
Michael DeHaan
95069b7ee3
Merge pull request #326 from pas256/patch-2
...
Fixing append when user already in desired groups
2012-05-07 17:01:50 -07:00
John Kleint
db65cf5a90
Fix non-sudo execution, add --sudo-user to ansible-playbook.
2012-05-07 19:58:16 -04:00
Brendan Beveridge
5d63c6b204
remove now useless append check in user_mod
2012-05-08 09:49:37 +10:00
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
2012-05-08 09:43:51 +10:00
Seth Vidal
42b55a07cd
fix indentation
2012-05-07 18:10:52 -04:00
Seth Vidal
f41fb90d78
fix the get_hosts() error in get_groups returning a dict not a list of group objects
2012-05-07 18:09:57 -04:00
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.
2012-05-07 11:35:45 -07:00
Cosmin Luță
472395bd77
Prevent facter stderr messages from confusing ansible
2012-05-07 18:08:50 +03:00
Michael DeHaan
d6e56dee87
Update development changelog.
2012-05-06 18:34:07 -04:00
Michael DeHaan
66ba6b023c
Update manpage to mention -U (--sudo-user).
2012-05-06 18:32:43 -04:00
Michael DeHaan
4694c3fbba
Fixup the previous sudo_user support patch to work with playbooks.
2012-05-06 18:24:45 -04:00
Jim Richardson
a1ed9fc546
sudo -u works now. Needs testing and maybe a bit of cleanup
2012-05-06 18:24:45 -04:00
Jim Richardson
abcfdbeeaf
first bit of getting sudo -u functionality
2012-05-06 18:24:45 -04:00
Jim Richardson
4d623d0356
sudo -u works now. Needs testing and maybe a bit of cleanup
2012-05-06 18:24:44 -04:00
Jim Richardson
98dda72be1
first bit of getting sudo -u functionality
2012-05-06 18:24:44 -04:00
Michael DeHaan
cbbd9d8f3a
Merge pull request #316 from skvidal/devel
...
fix up service module to make it start processes that are listed to be
2012-05-06 16:43:20 -07:00
Michael DeHaan
85a04a2517
Add missing file
2012-05-06 18:02:53 -04:00
Michael DeHaan
a7b9bf958d
Add tests for new advanced inventory features (groups of groups, group variables) in the default INI format file.
2012-05-06 18:01:11 -04:00
Michael DeHaan
46c661b3e3
Further work on making the YAML inventory parser use the new inventory objects.
2012-05-06 17:03:17 -04:00
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.
2012-05-06 15:00:17 -04:00
Michael DeHaan
3fb2d38514
Reinstate external inventory script support this time using the new more OO-ey inventory system.
...
Next up: YAML format.
2012-05-06 14:47:05 -04:00
Michael DeHaan
d9bec842ef
missing files
2012-05-05 16:37:28 -04:00
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.
2012-05-05 16:31:03 -04:00
Michael DeHaan
958832fb1f
Log last execution of ansible-pull to /var/log/ansible-pull.log
...
TODO: logrotate script and append to log instead.
2012-05-05 12:18:04 -04:00
Michael DeHaan
23c6a0985c
Update devel branch version in RPM spec.
2012-05-05 12:16:19 -04:00
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
2012-05-04 01:20:51 -04:00
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
2012-05-02 00:28:19 -04:00
Michael DeHaan
aec8995fd9
Change defaults so people have to make conscious decisions about pull setup.
2012-05-01 23:25:19 -04:00
Michael DeHaan
00ea71d8de
Add some comments to ansible-pull and the example playbook
2012-05-01 23:22:23 -04:00
Michael DeHaan
6be85f4fc5
Merge branch 'local' of https://github.com/sfromm/ansible into devel
2012-05-01 23:06:50 -04:00
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.
2012-05-02 09:51:19 -07:00
Stephen Fromm
23ff967f38
Copy inventory file to client
2012-05-02 09:51:19 -07:00