Commit graph

3858 commits

Author SHA1 Message Date
Johan Wirén
75b52d745e Updated documentation. Works with ansible-doc 2013-02-16 15:11:07 +01:00
Johan Wirén
94813d38e6 Added zfs example playbook 2013-02-14 14:16:33 +01:00
Johan Wirén
19c94d7380 Added zfs module 2013-02-14 14:16:08 +01:00
Daniel Hokka Zakrisson
584fd7a261 Fix Python 2.6-isms in sysctl module 2013-02-14 12:14:44 +01:00
Michael DeHaan
81d426de2a Merge pull request #2066 from lorin/git-example
Add example of read-write git checkout via ssh
2013-02-13 05:22:55 -08:00
Lorin Hochstein
321175cdfa Add example of read-write git checkout via ssh 2013-02-12 22:08:14 -05:00
Daniel Hokka Zakrisson
7e2999ed2d Add directory detection to _remote_md5 and use this in copy
If it is a directory, change the destination path by appending the
basename of the source file, like is done if the destination ends with a
/, and try to get the MD5 of the new path.
2013-02-12 22:39:05 +01:00
Daniel Hokka Zakrisson
f12dbd431a Don't remove invocation from the result in the log callback
Fixes #2064.
2013-02-12 22:26:30 +01:00
Daniel Hokka Zakrisson
85fb8494c5 Clean up device fact gathering
Remove lots of re use that really shouldn't have been re in the first
place. Initialize pcidata even if lspci is unavailable, and check for
its usability before trying to use it.

Fixes #2060.
2013-02-12 18:48:14 +01:00
Daniel Hokka Zakrisson
0212fed922 Merge pull request #2061 from candeira/fix_bug_in_user_module
fix remote execution NameError in module 'user'
2013-02-12 09:22:46 -08:00
Javier Candeira
ae81e3607f fix remote execution NameError in module 'user' 2013-02-13 04:01:46 +11:00
Michael DeHaan
589548531e Merge pull request #2054 from kavink/devel
Fixing logical error in detecting virtual device.
2013-02-11 18:25:32 -08:00
Kavin Kankeshwar
3042366199 Fixing logical error in detecting virtual device.
So In my Centos 5.9 machine, if there is RAID mount ansible will crash, as it cannot find scheduler file. The reason being, this should be a virtual device as there is no "device" folder under e.g. /sys/block/md0/

Here is the crash:

[kk@u1 ansible]$ ansible q3 -m setup -k -u root --tree=/tmp/facts
SSH password:
q3 | FAILED => failed to parse: /sys/block/md0
Traceback (most recent call last):
  File "/root/.ansible/tmp/ansible-1360629441.14-171498703486275/setup", line 1797, in ?
    main()
  File "/root/.ansible/tmp/ansible-1360629441.14-171498703486275/setup", line 1050, in main
    data = run_setup(module)
  File "/root/.ansible/tmp/ansible-1360629441.14-171498703486275/setup", line 1000, in run_setup
    facts = ansible_facts()
  File "/root/.ansible/tmp/ansible-1360629441.14-171498703486275/setup", line 990, in ansible_facts
    facts.update(Hardware().populate())
  File "/root/.ansible/tmp/ansible-1360629441.14-171498703486275/setup", line 312, in populate
    self.get_device_facts()
  File "/root/.ansible/tmp/ansible-1360629441.14-171498703486275/setup", line 439, in get_device_facts
    m = re.match(".*?(\[(.*)\])", scheduler)
  File "/usr/lib64/python2.4/sre.py", line 129, in match
    return _compile(pattern, flags).match(string)
TypeError: expected string or buffer
2013-02-11 18:23:58 -08:00
Michael DeHaan
af3402fe35 Merge pull request #2043 from chrishoffman/rabbitmq
Rabbitmq Module Updates
2013-02-11 17:43:07 -08:00
Daniel Hokka Zakrisson
d632210941 Allow using other users' home directories as well 2013-02-11 23:43:30 +01:00
Daniel Hokka Zakrisson
89e73c123f Fix tilde expansion for fileglob
Use common suffix to determine what part of original term to keep and
how much of the full path to combine to get a usable filename.
2013-02-11 23:43:27 +01:00
Daniel Hokka Zakrisson
57e51f7fdf Clean up some extra_vars redundancy 2013-02-11 23:25:50 +01:00
Daniel Hokka Zakrisson
57cac788fb Fix setup when /sys/block is inaccessible 2013-02-11 23:24:47 +01:00
Daniel Hokka Zakrisson
5ba090c366 Fixes for Python 2.4 2013-02-11 23:23:14 +01:00
Daniel Hokka Zakrisson
1a0f3b173e Merge pull request #2046 from chrishoffman/importfix
Duplicate/missing import
2013-02-10 16:05:13 -08:00
Chris Hoffman
9057f72881 Removing duplicate import, adding missing import 2013-02-10 18:31:55 -05:00
Daniel Hokka Zakrisson
a1e00c93e5 Add ansible_ssh_user/pass to enable inventory-defined users 2013-02-10 23:22:18 +01:00
Chris Hoffman
507e49396b Updating how to run commands in check mode 2013-02-10 17:20:44 -05:00
Chris Hoffman
ca3b8228f7 Updating how to run commands in check mode, standarizing quotes 2013-02-10 17:14:24 -05:00
Chris Hoffman
2c947c2ed6 Adding aliases 2013-02-10 17:08:33 -05:00
Chris Hoffman
114a4dc597 Standarizing quotes 2013-02-10 17:02:50 -05:00
Chris Hoffman
31e5e81fcd Standarizing module in line with other rabbitmq modules, adding support for setting tracing 2013-02-10 17:01:20 -05:00
Chris Hoffman
b79d7a606c Using new qualified executable 2013-02-10 17:00:09 -05:00
Daniel Hokka Zakrisson
c83e428a7e Default expand_lists to True and set it to False for only_if
Fixes #2026 and #2027.
2013-02-10 22:57:53 +01:00
Chris Hoffman
c94ec20a16 Getting fully qualified path for executable 2013-02-10 14:38:00 -05:00
Chris Hoffman
5a4ff6ca60 Cleaning up tag compare, getting fully qualified path for executable 2013-02-10 14:37:21 -05:00
Chris Hoffman
32c7fa7f70 Remove unneccesary quotes from user task 2013-02-10 14:32:43 -05:00
Michael DeHaan
b2b1900765 minor aesthetics tweak 2013-02-10 13:20:19 -05:00
Michael DeHaan
b1c739889c Add example of working with the environment 2013-02-10 13:08:16 -05:00
Michael DeHaan
f7497e75e5 Able to use "environment: " on any task to pass proxy details and other useful settings. Can be a variable
or a dictionary.
2013-02-10 13:05:58 -05:00
Michael DeHaan
72a05ae2a0 Move diff code more into runner code. 2013-02-09 23:24:03 -05:00
Michael DeHaan
6f0c9592bb Additions to Who Uses Ansible 2013-02-09 23:05:09 -05:00
Michael DeHaan
0ad6ac4086 Fix group depth for nested groups 2013-02-09 22:52:35 -05:00
Michael DeHaan
85b52ca625 Resort the who uses ansible page 2013-02-09 22:49:00 -05:00
Michael DeHaan
f41cf5528c Add complex networking setup to docs! 2013-02-09 22:47:19 -05:00
Michael DeHaan
df032dfd11 Merge pull request #2039 from okorz001/fix-man-page
Correct -u description in ansible man page
2013-02-09 19:44:37 -08:00
Michael DeHaan
828119d823 Allow the remote username to come from a variable set in vars_files or vars 2013-02-09 22:42:35 -05:00
Michael DeHaan
e6ead2ca74 make things like $FILE(/etc/path/foo.conf) and $ENV(HOME) work without having to use brackets to index them 2013-02-09 22:35:27 -05:00
Oscar Korz
ba807ed5a8 Correct -u description in ansible man page 2013-02-09 19:24:53 -08:00
Michael DeHaan
e906271f91 Update changelog -- wow, lots of nice stuff merged in today! 2013-02-09 14:50:47 -05:00
Michael DeHaan
790cc11f03 Change the 0.X part to not imply something new was added in 0.X something if a user forgets to put in a specific version in the module docs. 2013-02-09 14:44:10 -05:00
Michael DeHaan
6c4e1db54e Documentation formatting for mongodb_user so it will show up in ansible-doc and the web. 2013-02-09 14:43:17 -05:00
Michael DeHaan
3c51feb36c Had to remove the instance_tags example because our doc generator was choking on it, feel free to add it back if you can get it to be valid
YAML again :)
2013-02-09 14:39:57 -05:00
Michael DeHaan
27ff22610d Fix lineinfile docs formatting 2013-02-09 14:34:03 -05:00
Michael DeHaan
c692de6b80 Cleanup YAML parse error warning code a tiny amount. 2013-02-09 14:30:19 -05:00