Commit Graph

4052 Commits (582f088e7e4b1812f52d3670abe0a4d50ba6bba5)
 

Author SHA1 Message Date
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.
12 years ago
Daniel Hokka Zakrisson 0212fed922 Merge pull request #2061 from candeira/fix_bug_in_user_module
fix remote execution NameError in module 'user'
12 years ago
Javier Candeira ae81e3607f fix remote execution NameError in module 'user' 12 years ago
Michael DeHaan 589548531e Merge pull request #2054 from kavink/devel
Fixing logical error in detecting virtual device.
12 years ago
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
12 years ago
Michael DeHaan af3402fe35 Merge pull request #2043 from chrishoffman/rabbitmq
Rabbitmq Module Updates
12 years ago
Daniel Hokka Zakrisson d632210941 Allow using other users' home directories as well 12 years ago
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.
12 years ago
Daniel Hokka Zakrisson 57e51f7fdf Clean up some extra_vars redundancy 12 years ago
Daniel Hokka Zakrisson 57cac788fb Fix setup when /sys/block is inaccessible 12 years ago
Daniel Hokka Zakrisson 5ba090c366 Fixes for Python 2.4 12 years ago
Daniel Hokka Zakrisson 1a0f3b173e Merge pull request #2046 from chrishoffman/importfix
Duplicate/missing import
12 years ago
Chris Hoffman 9057f72881 Removing duplicate import, adding missing import 12 years ago
Daniel Hokka Zakrisson a1e00c93e5 Add ansible_ssh_user/pass to enable inventory-defined users 12 years ago
Chris Hoffman 507e49396b Updating how to run commands in check mode 12 years ago
Chris Hoffman ca3b8228f7 Updating how to run commands in check mode, standarizing quotes 12 years ago
Chris Hoffman 2c947c2ed6 Adding aliases 12 years ago
Chris Hoffman 114a4dc597 Standarizing quotes 12 years ago
Chris Hoffman 31e5e81fcd Standarizing module in line with other rabbitmq modules, adding support for setting tracing 12 years ago
Chris Hoffman b79d7a606c Using new qualified executable 12 years ago
Daniel Hokka Zakrisson c83e428a7e Default expand_lists to True and set it to False for only_if
Fixes #2026 and #2027.
12 years ago
Chris Hoffman c94ec20a16 Getting fully qualified path for executable 12 years ago
Chris Hoffman 5a4ff6ca60 Cleaning up tag compare, getting fully qualified path for executable 12 years ago
Chris Hoffman 32c7fa7f70 Remove unneccesary quotes from user task 12 years ago
Michael DeHaan b2b1900765 minor aesthetics tweak 12 years ago
Michael DeHaan b1c739889c Add example of working with the environment 12 years ago
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.
12 years ago
Michael DeHaan 72a05ae2a0 Move diff code more into runner code. 12 years ago
Michael DeHaan 6f0c9592bb Additions to Who Uses Ansible 12 years ago
Michael DeHaan 0ad6ac4086 Fix group depth for nested groups 12 years ago
Michael DeHaan 85b52ca625 Resort the who uses ansible page 12 years ago
Michael DeHaan f41cf5528c Add complex networking setup to docs! 12 years ago
Michael DeHaan df032dfd11 Merge pull request #2039 from okorz001/fix-man-page
Correct -u description in ansible man page
12 years ago
Michael DeHaan 828119d823 Allow the remote username to come from a variable set in vars_files or vars 12 years ago
Michael DeHaan e6ead2ca74 make things like $FILE(/etc/path/foo.conf) and $ENV(HOME) work without having to use brackets to index them 12 years ago
Oscar Korz ba807ed5a8 Correct -u description in ansible man page 12 years ago
Michael DeHaan e906271f91 Update changelog -- wow, lots of nice stuff merged in today! 12 years ago
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. 12 years ago
Michael DeHaan 6c4e1db54e Documentation formatting for mongodb_user so it will show up in ansible-doc and the web. 12 years ago
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 :)
12 years ago
Michael DeHaan 27ff22610d Fix lineinfile docs formatting 12 years ago
Michael DeHaan c692de6b80 Cleanup YAML parse error warning code a tiny amount. 12 years ago
Michael DeHaan 5c38248788 Fix crontab doc formatting 12 years ago
Michael DeHaan 550a1b5f02 Remove mercurial module reference now that we have a cleaned up hg module in core now! 12 years ago
Michael DeHaan 5457e969db Add a reference to Coderwall for tips & tricks! 12 years ago
Michael DeHaan c91f8c1565 Merge pull request #2036 from cordmata/devel
Add rabbitmq_vhost module.
12 years ago
Michael DeHaan 4e9a1693cd Merge pull request #2035 from tgerla/devel
Add more error handling to the ec2 module, remove Python 2.6ism
12 years ago
Matt Cordial 3284fd607f Add rabbitmq_vhost module.
Simply ensures existence or non-existence of a vhost.
12 years ago
Tim Gerla 0f389b311f Add more error handling to the ec2 module, remove Python 2.6ism 12 years ago
Michael DeHaan fa44f49afb Merge pull request #2034 from chrishoffman/rabbitmq
Adding rabbitmq modules
12 years ago