Commit Graph

5336 Commits (e0a15d0c503b2eef055b4883f717ecac77379ef1)
 

Author SHA1 Message Date
Steven Dossett e0a15d0c50 Updated to support inventory options from command line 12 years ago
Steven Dossett 1ff93e6b08 Plugin with_inventory_hostnames - loops generated from groups or
hosts in inventory
12 years ago
Michael DeHaan 9736ec03a9 Merge pull request #3089 from kentfrazier/unsafe-extra-vars-fix
Keep ansible-playbook from bombing without extra-vars
12 years ago
Kent Frazier 3316b87059 Keep ansible-playbook from bombing without extra-vars
A recent change to ansible-playbook to support json extra-vars
also inadvertently broke the script when no extra-vars are
provided. Simply checking to make sure it is defined and truthy
should take care of the issue.
12 years ago
Michael DeHaan 9122efb24a Merge pull request #3083 from mvo5/feature/facts-add-statvfs
add "size_{total,free}" to the "mount" facts
12 years ago
Michael DeHaan 5edc130476 Merge pull request #3081 from qjcg/arch-optdepends
Added optional dependencies for fireball mode to PKGBUILD.
12 years ago
Michael DeHaan f9ddfc6cab Merge pull request #3080 from bigpandaio/devel
Issue #3079: Initializing key_exists in case the S3 bucket does not exis...
12 years ago
Michael DeHaan 049b77be6d Merge pull request #3076 from mmoya/userspace-arch-facts
Provide userspace_{architecture,bits} facts
12 years ago
Michael DeHaan 514f18acac Merge branch 'solaris-network-facts' of git://github.com/chrisgardner/ansible into devel 12 years ago
Michael DeHaan 47b9db0d98 Remove debug statement in previous patch. 12 years ago
Michael DeHaan eec53347b5 Merge branch 'devel' of git://github.com/trbs/ansible into groups 12 years ago
Stephen Fromm 43d96ba335 cleanup to dmi fact discovery
When invoking dmidecode, first use module.get_bin_path() and secondly
use module.run_command.
Remove sub function execute() from get_dmi_facts().
Simplify get_dmi_facts() by only using two mechanisms to determine dmi
facts:  first try /sys/devices/virtual/dmi and if not available, use
dmidecode executable.
12 years ago
Michael DeHaan 2c9a6ba2e9 Merge pull request #3085 from benjixx/remove-unused-git-function
remove unused git function is_current_branch (looks like it returns alwa...
12 years ago
Benjamin Schwarze a0c89e742e remove unused git function is_current_branch (looks like it returns always True anyway which might be wrong) 12 years ago
Michael DeHaan 80bebc1806 Merge pull request #3069 from benjixx/consistently-get-bin-path-for-git
consistently use module.get_bin_path('git', True) to get git path before...
12 years ago
Michael DeHaan d078ad5a13 Merge pull request #3068 from lorin/authkey-default
authorized_key: Set manage_dir default value
12 years ago
Michael DeHaan 4afc0a5c03 Merge pull request #3044 from chrisgardner/solaris_facts
Solaris facts
12 years ago
Michael DeHaan d5182f5c92 Update changelog 12 years ago
Michael DeHaan fbba92b61e Add an example of JSON extra variables on the command line. 12 years ago
Michael DeHaan b19609b98b Slight docs tweak 12 years ago
Michael DeHaan 0837c9785f Merge pull request #3040 from bfabio/devel
Support JSON in --extra-vars.
12 years ago
node a58baae2c4 Make the actual user used for executing play available as 'ansible_ssh_user' variable 12 years ago
Michael DeHaan 957a7bf373 Merge pull request #3020 from rtheys/virt-state
Support state parameter in list_vms command
12 years ago
Benjamin Schwarze 3cae9d6d0d use module.get_bin_path('git', True) once and pass git_path to functions 12 years ago
Michael DeHaan 69d514100c Refine error message. 12 years ago
Michael DeHaan 0b30c74e86 Merge branch 'rc.d-systemd' of git://github.com/glensc/ansible into sysd 12 years ago
Michael Vogt 6acf9a9b3b use statvfs.f_bavail to match the output of "df -B1" 12 years ago
Michael DeHaan ee6ea97435 Merge pull request #3082 from pol/devel
Handle '#' in var strings by splitting on ' #'
12 years ago
Michael Vogt 73a12b04a4 add "size_{total,free}" to the "mount" facts 12 years ago
Pol Llovet 4432c01ceb Handle '#' in var strings by splitting on ' #'
If someone has a " #" in a quoted var string, it
will interpret that as a comment and refuse to
load the inventory file due to an unbalanced
quote. Noisy failure > unexpected behavior.
12 years ago
John Gosset 424109d8de Added optional dependencies for fireball mode to PKGBUILD. 12 years ago
Shahar Kedar fe6ca38bec Issue #3079: Initializing key_exists in case the S3 bucket does not exist 12 years ago
Michael DeHaan 4a5b567f0c Merge pull request #3078 from bennojoy/devel
bug fix nova_compute
12 years ago
bennojoy 0b93c68d57 bug fix nova_compute 12 years ago
Michael DeHaan 7628ccbfe4 Merge pull request #3075 from dahpgjgamgan/doc_yaml_fix
advanced playbooks docs yaml snippets always use ---
12 years ago
Maykel Moya d0843a7f55 Provide userspace_{architecture,bits} facts
When running inside a chroot userspace architecture might not
match that of the actual host.

This patch provides userspace_bits as reported by python's
platform.architecture(). Also provides userspace_architecture fact
if host is an x86 machine.
12 years ago
Jan Duzinkiewicz 8ebd1792eb advanced playbooks docs yaml snippets always use --- 12 years ago
Chris Gardner 1b8adab2cc Add Solaris network facts. IPv4 and IPv6 both working. 12 years ago
trbs b537aff586 Fix for #3062 additional groups should only be added once.
Also consolidated duplicate groups code into one get_groups_set() method.
Removed unused call to user_group_membership.
Removed sorting operations on set functions cause sets are inherently unordered.
Minor style improvements to match the rest of the code.

The new function will make the order of group names passed to the system command less determistic.
Which was already the case for modify_user_usermod() but not for other methods.
It will also strip out duplicate group names automatically which was not always the case previously.
12 years ago
Lorin Hochstein 8c9cceacbf authorized_key: Set manage_dir default value
This commit fixes a bug where the authorized_key module causes
the ~user/.ssh directory to be owned by root instead of the user,
when the manage_dir argument is not specified.

If the manage_dir argument was not specified, the module behaved as if
manage_dir was set to false, even though it's supposed to default to
true.

This module assumed that an optional argument, with no default
specified, will not be present in the module.params dictionary.

What actually seems to happen is that the argument does appear in
the module.params dictionary with a value of None.

The upside is that this line was evaluating to None instead of
true:

    manage_dir = params.get("manage_dir", True)

I fixed the problem in this particular module by explicitly specifying
the default value for the manage_dir arugment. But if this bug
occurred because of a change in behavior in AnsibleModule, then other
modules may be broken as well.
12 years ago
Michael DeHaan b8630d2bc4 Merge pull request #3067 from pol/devel
Remove inline comments from inventory tokenizing.
12 years ago
Pol Llovet ba78360c52 Remove inline comments from inventory tokenizing. 12 years ago
Michael DeHaan ad1a02aa55 Merge pull request #3064 from sfromm/issue2990
Verify /proc/modules is readable (issue #2990)
12 years ago
Michael DeHaan 77ffef5379 Merge pull request #3065 from sfromm/issue2983
Use get_bin_path to find mkfs command (issue #2983)
12 years ago
Stephen Fromm 00b3a450c7 Verify /proc/modules is readable (issue #2990) 12 years ago
Stephen Fromm 3127bab6d6 Use get_bin_path to find mkfs command (issue #2983) 12 years ago
Michael DeHaan 0c03a5cfc2 Merge pull request #3049 from stoned/cmd-expanduser-once
No need to expanduser() command's chdir argument twice
12 years ago
Michael DeHaan 27640de0a3 Merge pull request #3058 from markmandel/devel
Updated vagrant external plugin
12 years ago
Chris Gardner 2b71ab6765 Fix typo. Solaris 9 should now correctly ignore 'brand' and use 'implementation'. 12 years ago
Chris Gardner 88115f4ab2 TODO: Separate IPv4 and IPv6 12 years ago