Trapier Marshall
250620f2ab
Add pciid to LinuxNetwork interface fact
...
This commit adds pciid to the LinuxNetwork fact object.
pciid is gathered if the symlink /sys/class/net/*/device exists.
Example [>>>> emphasis <<<<]:
$ readlink /sys/class/net/eth0/device
../../../0000:01:00.0
$ ansible localhost --ask-pass -i /tmp/hosts -m setup -a "filter=ansible_eth0"
SSH password:
localhost | success >> {
"ansible_facts": {
"ansible_eth0": {
"active": false,
"device": "eth0",
"macaddress": "0c:d2:92:5d:6e:8e",
"module": "alx",
"mtu": 1500,
>>>> "pciid": "0000:01:00.0", <<<<
"promisc": true,
"type": "ether"
}
},
"changed": false
}
11 years ago
Brian Coca
0c21196633
moved openvz inventory script to new home
11 years ago
Brian Coca
164092a835
optimized module docs
11 years ago
Brian Coca
2575e1540a
Merge pull request #11740 from amenonsen/8602-rebase
...
Encrypt the vault file after editing only if the contents changed
11 years ago
Toshio Kuratomi
d2346fd2e2
Python2.4 compat fix
11 years ago
James Cammarata
d6cafff2f9
Additional changes to fix fileglob relative path lookups
11 years ago
Toshio Kuratomi
6a68be4e28
Handle quoting of values in dict parameters
11 years ago
James Cammarata
cb262449c7
Reworking internal result flags and making sure include_vars hides vault data
...
Fixes #10194
11 years ago
James Cammarata
eebf437d87
Submodule pointer update
11 years ago
Brian Coca
b2b19a1dc4
Merge pull request #11751 from amenonsen/playwithoutbook
...
A better error message for «ansible playbook.yml»
11 years ago
James Cammarata
49a6601856
Further cleanup of internal use of ansible_ssh_host
11 years ago
James Cammarata
ee835ff7ad
Add a base-level get_basedir method for lookup plugins and fix relative lookups
...
Fixes #11746
11 years ago
Abhijit Menon-Sen
65d62090c2
A better error message for «ansible playbook.yml»
...
This is a very conservative change: we add the hint only if we're
definitely going to die already.
11 years ago
James Cammarata
3a4dd523d3
Fix bug where we calculated the relative path of recurisive copies wrong
...
Fixes #11470
11 years ago
James Cammarata
a1a8997e89
Merge pull request #11663 from whereismyjetpack/fix_ansible_ssh_host
...
only set ansible_ssh_host if not already set
11 years ago
Brian Coca
a56ff7ae54
now it really is oneline
11 years ago
Brian Coca
5d1d9f1505
fixed diff output to be as it was in 1.x, copy and template now use the same
...
functions to do difs.
11 years ago
James Cammarata
c56a304ad9
Merge pull request #9195 from reedloden/add-dns-facts
...
Add several DNS-related facts by parsing /etc/resolv.conf
11 years ago
James Cammarata
ccb7fb3b4c
Submodule pointer update
11 years ago
James Cammarata
034c766439
Fixing logic in template.py to not assume 'changed' is in the result
11 years ago
James Cammarata
a78ed39f93
Merge pull request #11743 from renard/regex_escape-filter
...
Regex escape filter
11 years ago
James Cammarata
db4b3544d7
Fix syntax error in action plugin template.py
11 years ago
Reed Loden
eb1fb41576
Add several DNS-related facts by parsing /etc/resolv.conf
...
Facts include nameservers, domain, search path, sortlist, and options.
11 years ago
Sébastien Gross
36534668f0
Change name from re_escape to regex_escape to fit existing function names.
11 years ago
Sébastien Gross
c1e4085251
Add regular expression escaping filter.
11 years ago
Brian Coca
0b6fadaad7
started implementing diff
...
diff now works with template
also fixed check mode for template and copy
11 years ago
Pablo Figue
f8bf2ba1bd
Encrypt the vault file after editing only if the contents changed
11 years ago
James Cammarata
73aa5686cc
Remove octal escapes from unicode escape handling
...
Fixes #11673
11 years ago
Brian Coca
5be384bab0
Merge pull request #11733 from amenonsen/csvfile
...
v2 breakage: lookupfile should lookup the given file=xxx
11 years ago
Brian Coca
b19eb0f4dc
minor improvements to display
11 years ago
Abhijit Menon-Sen
8737061a8f
lookupfile should lookup the given file=xxx
...
(Earlier it used to lookup the pre-split term.)
11 years ago
James Cammarata
eca88d4253
Merge pull request #11732 from amenonsen/9212-rebase
...
Forbid copy: content="" with a directory destination
11 years ago
Mario de Frutos
4ed664f4d0
Forbid copy: content="" with a directory destination
...
Fixes #9107 , closes PR #9212
11 years ago
Brian Coca
b9710b4a34
wrapped new system ssh key lookup in case file does not exist
11 years ago
Patrick Michaud
e4df8c3d36
Have paramiko use /etc/ssh_known_hosts
...
Fixes an issue with a confusing error: "paramiko: The authenticity of host '[host]' can't be established" when ssh on the command line doesn't complain
Closes PR #7730
11 years ago
Brian Coca
0858d97c44
also captures typeerrors for when not getting a proper string in output
11 years ago
Toshio Kuratomi
8ee3b7384d
Guard the PROTOCOL setting so that we work on older pythons
11 years ago
Toshio Kuratomi
36382face9
Add a warning about mode being octal
11 years ago
James Cammarata
eccfb7e0b5
Adding initial support for includes in handlers
...
Fixes #11694
11 years ago
Brian Coca
7215470c6f
implemented galaxy list in v2
11 years ago
Will Thames
9abd9a8f57
Make ansible-galaxy work with galaxy.ansible.com
...
Now works with role files that use Ansible Galaxy roles
Still work to do on making this work with internal roles
11 years ago
Brian Coca
cff77de917
added todo for future of feature
11 years ago
Brian Coca
0089eb8102
reimplemented logging based on log_path var
11 years ago
James Cammarata
ff49c5adac
Make sure we're actually looping before looking at 'results' in TaskResult
...
Fixes #11696
11 years ago
James Cammarata
0fcd53e887
Make sure the command is sudoable before checking for the become password
...
Fixes #11714
11 years ago
James Cammarata
e526743b4f
Allowing `args: "{{some_var}}"` for task params again
...
This is unsafe and we debated re-adding it to the v2/2.0 codebase,
however it is a common-enough feature that we will simply mark it
as deprecated for now and remove it at some point in the future.
Fixes #11718
11 years ago
Brian Coca
681eab1158
fix adhoc that broke with assuming step is always in options
11 years ago
Brian Coca
88e1ef8c9b
implemented --step in v2
11 years ago
Brian Coca
3bf1edfd96
Merge pull request #11591 from defionscode/boto3
...
Connection function for boto3
11 years ago
James Cammarata
7bc789ba64
Properly template task names
...
Also fixes in the correct way the bug in which the role name was
incorrectly showing up twice in the task name.
Fixes #10347
11 years ago