James Cammarata
2d90cbf78b
Properly fail results with rc != 0
...
Fixes #11769
9 years ago
Brian Coca
787a0c4e04
fixed indent issues
9 years ago
Brian Coca
77fc3ce759
removed unused import
9 years ago
Brian Coca
aa5bd8c2b5
added pam_limits to changelog
9 years ago
Lukas Pirl
d9aa14feea
fixes remote code execution for su/sudo and strict remote umasks
...
* temporarily changes umask for creating temporary directories
* otherwise parent directories may not get chmod'ed and end up
unreadable
refs #9902
9 years ago
James Cammarata
e505a1b7c4
Fix variable precedence integrationt test
9 years ago
Brian Coca
c76a66694f
fixed typo
9 years ago
Brian Coca
d9c63fb273
added openvz to inventory
9 years ago
Brian Coca
80ecab5317
Merge pull request #11761 from amenonsen/9843-rebase
...
Add pciid to LinuxNetwork interface fact
9 years ago
Hugh Saunders
f344ec463f
Add LVM facts to setup module
...
This commit adds LinuxHardware.get_device_facts() and calls that from
.populate().
LVM facts are only gathered if the setup module is running as root and
the lvm utilities are available (tested by searching for 'vgs').
If the conditions are met, facts are set for each volume group and
logical volume.
Example:
Test LVM Data:
$ sudo vgs
VG #PV #LV #SN Attr VSize VFree
test 1 2 0 wz--n- 5.00g 2.00g
$ sudo lvs
LV VG Attr LSize Pool Origin Data% Move Log Copy% Convert
testlv test -wi-a---- 1.00g
testlv2 test -wi-a---- 2.00g
Facts Returned:
$ ansible localhost -i /tmp/inv -m setup -a 'filter=ansible_lvm'
localhost | success >> {
"ansible_facts": {
"ansible_lvm": {
"lvs": {
"testlv": {
"size_g": "1.00",
"vg": "test"
},
"testlv2": {
"size_g": "2.00",
"vg": "test"
}
},
"vgs": {
"test": {
"free_g": "2.00",
"num_lvs": "2",
"num_pvs": "1",
"size_g": "5.00"
}
}
}
},
"changed": false
}
Test as non-root:
$ ansible localhost -i /tmp/inv-user -m setup -a 'filter=ansible_lvm'
localhost | success >> {
"ansible_facts": {},
"changed": false
}
Test without lvm utilities available
$ sudo mv /sbin/vgs{,.bk}
$ ansible localhost -i /tmp/inv -m setup -a 'filter=ansible_lvm'
localhost | success >> {
"ansible_facts": {},
"changed": false
}
9 years ago
Brian Coca
5f8db9cd4b
changed verbose_override to the new _ansible_verbose_override to keep in line with previous changes
...
output now defaults back to having indent=4
9 years ago
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
}
9 years ago
Brian Coca
8746e692c1
changed check to allow for powerpc
...
fixes #11528
9 years ago
Brian Coca
0c21196633
moved openvz inventory script to new home
9 years ago
Brian Coca
164092a835
optimized module docs
9 years ago
Brian Coca
65c649aa3e
added virt_net to changelog
9 years ago
Brian Coca
772841a0a2
added virt_pool module to changelog
9 years ago
Brian Coca
330aee33c5
Merge pull request #8358 from jordonr/devel
...
Added OpenVZ Inventory python script
9 years ago
Brian Coca
2575e1540a
Merge pull request #11740 from amenonsen/8602-rebase
...
Encrypt the vault file after editing only if the contents changed
9 years ago
Toshio Kuratomi
d2346fd2e2
Python2.4 compat fix
9 years ago
Brian Coca
12e3a2a0c1
Merge pull request #11759 from resmo/fix/doc-changelog
...
changelog: fix typos
9 years ago
Rene Moser
41319dc202
changelog: fix typos
9 years ago
James Cammarata
d6cafff2f9
Additional changes to fix fileglob relative path lookups
9 years ago
Brian Coca
9416fc6271
Merge pull request #8977 from billwanjohi/add_package_classifiers
...
add distutils package classifiers
9 years ago
Brian Coca
010e58ebfa
Merge pull request #9878 from ansible/handle-quoted-comma-dict-param
...
Handle quoting of values in dict parameters
9 years ago
billwanjohi
b2739cec6d
add distutils package classifiers
...
I was particularly interested in the programming language ones,
but the others might be useful to others browsing PyPI.
Now with GPLv3+, and Utilities topic.
9 years ago
Toshio Kuratomi
6a68be4e28
Handle quoting of values in dict parameters
9 years ago
James Cammarata
cb262449c7
Reworking internal result flags and making sure include_vars hides vault data
...
Fixes #10194
9 years ago
James Cammarata
eebf437d87
Submodule pointer update
9 years ago
Brian Coca
b2b19a1dc4
Merge pull request #11751 from amenonsen/playwithoutbook
...
A better error message for «ansible playbook.yml»
9 years ago
James Cammarata
7d8afad28c
Merge pull request #11750 from amenonsen/example-prompt
...
Fix incorrect example of vars_prompt
9 years ago
James Cammarata
49a6601856
Further cleanup of internal use of ansible_ssh_host
9 years ago
James Cammarata
ee835ff7ad
Add a base-level get_basedir method for lookup plugins and fix relative lookups
...
Fixes #11746
9 years ago
bryan hunt
7a76fcb159
merged
9 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.
9 years ago
James Cammarata
3a4dd523d3
Fix bug where we calculated the relative path of recurisive copies wrong
...
Fixes #11470
9 years ago
Abhijit Menon-Sen
bb12121225
Fix incorrect example of vars_prompt
9 years ago
James Cammarata
a1a8997e89
Merge pull request #11663 from whereismyjetpack/fix_ansible_ssh_host
...
only set ansible_ssh_host if not already set
9 years ago
Brian Coca
a56ff7ae54
now it really is oneline
9 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.
9 years ago
James Cammarata
c56a304ad9
Merge pull request #9195 from reedloden/add-dns-facts
...
Add several DNS-related facts by parsing /etc/resolv.conf
9 years ago
James Cammarata
ccb7fb3b4c
Submodule pointer update
9 years ago
James Cammarata
034c766439
Fixing logic in template.py to not assume 'changed' is in the result
9 years ago
James Cammarata
a78ed39f93
Merge pull request #11743 from renard/regex_escape-filter
...
Regex escape filter
9 years ago
James Cammarata
db4b3544d7
Fix syntax error in action plugin template.py
9 years ago
Reed Loden
eb1fb41576
Add several DNS-related facts by parsing /etc/resolv.conf
...
Facts include nameservers, domain, search path, sortlist, and options.
9 years ago
Sébastien Gross
c0b7fcd304
Add documentation for regex_escape filter
9 years ago
Sébastien Gross
36534668f0
Change name from re_escape to regex_escape to fit existing function names.
9 years ago
Sébastien Gross
c1e4085251
Add regular expression escaping filter.
9 years ago
Brian Coca
0b6fadaad7
started implementing diff
...
diff now works with template
also fixed check mode for template and copy
9 years ago