Monty Taylor
7a76d4e03b
Remove unneeded required_one_of for openstack
...
We're being too strict - there is a third possibility, which is that a
user will have defined the OS_* environment variables and expect them to
pass through.
Conflicts:
lib/ansible/module_utils/openstack.py
lib/ansible/utils/module_docs_fragments/openstack.py
v2/ansible/module_utils/openstack.py
2015-05-29 13:18:14 -07:00
Toshio Kuratomi
be7c59c7bb
Make fetch_url check the server's certificate on https connections
2015-05-28 13:28:05 -07:00
Simon Dick
c0265f80fb
Allow the use of HTTP on custom ports in the fetch_url function
2015-05-28 13:27:59 -07:00
Brian Coca
54fb04afc4
made sequence more flexible, can handle descending and negative sequences and is skipped if start==end
2015-05-22 12:48:29 -07:00
Brian Coca
2816b8679b
fixed corner case when counting backwards, added test cases for count=0 and backwards counts
2015-05-22 12:14:17 -07:00
James Cammarata
196d9e2893
Version update for release candidate 1.9.2-0.2.rc2
2015-05-22 14:01:16 -05:00
James Cammarata
8fab8aedc0
Submodule update for stable-1.9
2015-05-22 13:30:45 -05:00
James Cammarata
982bad7886
Version bump for release candidate 1.9.2-0.1.rc1
2015-05-15 21:02:17 -05:00
Brian Coca
127a669a23
made special treatment of certain filesystem for selinux configurable
2015-05-15 18:12:06 -04:00
Brian Coca
4eff3d5dc1
now properly inherit data from ansible.cfg for sudo/su ask pass
...
fixes #10891
2015-05-04 16:57:46 -04:00
Toshio Kuratomi
e79535d42f
Update core module ref to pull in docker module fixes for 1.9
2015-05-01 08:00:54 -07:00
James Cammarata
b47d1d7e69
Version bump for release 1.9.1-1
2015-04-27 16:16:27 -05:00
James Cammarata
99af3a8dc1
version update for release candidate 1.9.1-0.4.rc4
2015-04-23 10:31:57 -05:00
Peter Oliver
3a5a6685a0
Consistently use "OracleLinux" in OS detection.
...
Previously, a mixture of "OracleLinux" and "Oracle Linux" was used,
causing the `ansible_os_family` fact not to be set to `RedHat`.
Fixes #10742 .
2015-04-20 18:54:37 -04:00
James Cammarata
9a07855151
Version bump for release candidate 1.9.1-0.3.rc3
2015-04-17 14:47:21 -05:00
James Cammarata
763f44a52b
Fix tag handling on meta:flush_handlers tasks
...
Fixes #10758
2015-04-17 13:01:39 -05:00
Brian Coca
8f4c97fdbe
adjusted for the posibolity of lsblk not existing for fact gathering
2015-04-17 11:16:09 -04:00
Chris Church
a7a218349a
Add -ExecutionPolicy Unrestricted back, was removed by #9602 .
2015-04-16 08:47:45 -04:00
Chris Church
1cbc45700e
Only try kerberos auth when username contains @
and pass realm to pywinrm. Alternative to #10644 , fixes #10577 .
2015-04-16 08:47:45 -04:00
Chris Church
baa6426c57
Remove winrm connection cache (only useful when running against one host). Also fixes #10391 .
2015-04-16 08:47:45 -04:00
James Cammarata
e16e2b171c
Version bump for 1.9.1-0.2.rc2 release candidate
2015-04-15 10:31:12 -05:00
Brian Coca
ea9db2a0cc
bad hack to maybe fix some corner cases with pbrun custom prompts
2015-04-15 11:18:02 -04:00
Brian Coca
2e5bad3385
fixed indent when looking at delegate_to vars
2015-04-14 19:00:15 -04:00
Brian Coca
b1b78a4fd6
fixed another typo
2015-04-13 10:58:36 -04:00
Brian Coca
f8b5e0814c
typo fix
2015-04-13 10:49:31 -04:00
Brian Coca
e609670fee
fix for when calling bootinfo throws permmission errors (AIX)
...
fixes https://github.com/ansible/ansible-modules-core/issues/1108
2015-04-13 10:26:08 -04:00
Jesse Rusak
d13646dcc5
Fix --force-handlers, and allow it in plays and ansible.cfg
...
The --force-handlers command line argument was not correctly running
handlers on hosts which had tasks that later failed. This corrects that,
and also allows you to specify force_handlers in ansible.cfg or in a
play.
2015-04-13 10:20:11 -04:00
Toshio Kuratomi
efa93d4239
Reverse the error messages from jsonfile get and set
2015-04-09 10:41:29 -07:00
Kimmo Koskinen
9bd2e3b752
Use codecs module while reading & writing json cache file
2015-04-09 10:41:23 -07:00
Jason DeTiberus
626b2fc7ef
Fix indentation
2015-04-07 23:00:54 -04:00
James Cammarata
b186f7b85e
Version bump for 1.9.1-0.1.rc1
2015-04-06 13:38:33 -05:00
Brian Coca
b855456844
updated submodule refs
2015-04-02 16:00:22 -04:00
Brian Coca
277658835a
capture IOErrors on backup_local (happens on non posix filesystems)
...
fixes #10591
2015-04-02 15:58:21 -04:00
Brian Coca
97a4483c7c
removed folding sudo/su to become logic from constants as it is already present downstream in playbook/play/tasks
2015-04-02 15:57:26 -04:00
Brian Coca
b965d12f1e
now ansible ignores tempate errors on passwords
...
they could be caused by random character combinations, fixes #10468
2015-04-02 15:53:58 -04:00
Brian Coca
84b8a80aa7
converted error on play var initialization into warning with more information
2015-04-02 15:53:16 -04:00
Brian Coca
1d4b96479f
dont break everything when one of the vars in inject does not template correctly, wait till its used
2015-04-02 15:53:16 -04:00
Brian Coca
6ab57081ec
readded sudo/su vars to allow role/includes to work with passed sudo/su
2015-03-29 10:17:41 -04:00
Brian Coca
c0afe27e2f
updated sumbmodule refs
2015-03-26 18:02:59 -04:00
Toshio Kuratomi
a00056723f
Make run_command() work when we get byte str with non-ascii characters (instead of unicode type like we were expecting)
...
Fix and test.
Fixes #10536
2015-03-26 07:52:05 -07:00
Toshio Kuratomi
d6afb5d80e
Fix assert to work with unicode values
2015-03-26 07:52:05 -07:00
James Cammarata
29809bb83d
Version bump for 1.9.0.1-1
2015-03-25 18:44:56 -05:00
Brian Coca
a0c7381a37
updated ref to extras
2015-03-25 18:05:09 -04:00
James Cammarata
d76f8deed5
Submodule updates for 1.9
2015-03-25 14:57:16 -05:00
James Cammarata
b268970564
Updating submodule pointers for 1.9
2015-03-25 14:46:54 -05:00
Brian Coca
0a334a160d
updated to latest ref
2015-03-24 15:16:09 -04:00
Brian Coca
cf3313be0c
makes raw module have quiet ssh so as to avoid extra output when not requried
2015-03-24 15:00:51 -04:00
James Cammarata
5d28d46b16
VERSION bump and submodule update for 1.9.0-0.2.rc2
2015-03-20 14:52:50 -05:00
Toshio Kuratomi
30af3166af
Update core modules for asg tag fix
2015-03-20 11:39:12 -07:00
Eri Bastos
22b10a8f6e
Patch for bug #10485 - ansible_distribution fact populates as 'RedHat' on Oracle Linux systems
2015-03-20 14:07:24 -04:00
Brian Coca
bb58cbcd91
now use combine vars to preserve existing cached host vars
2015-03-20 11:34:53 -04:00
Brian Coca
608496dbd3
removed debug play from tests
2015-03-20 11:24:35 -04:00
Brian Coca
e3e97f6e06
now correctly aplies add_host passed variables last to override existing vars.
2015-03-20 11:23:50 -04:00
Brian Coca
6dca95b309
now add_host loads hostvars
2015-03-20 10:34:51 -04:00
Toshio Kuratomi
fd47c4d687
Pull ec2_asg fixes by updating core modules
2015-03-19 22:47:14 -07:00
Toshio Kuratomi
6a803f6582
Pull another fix in from core modules
2015-03-19 12:49:42 -07:00
Brian Coca
2459eb6dbc
updated module ref for core
2015-03-19 15:20:28 -04:00
Brian Coca
b34b50d8d1
updated core to latests stable 1.9
2015-03-19 14:47:47 -04:00
Brian Coca
da62887233
ignore PE methods that are not sudo for checksums until we get them working universally
2015-03-19 14:46:40 -04:00
Brian Coca
824fc036e7
removed bare variable detection as this confuses people and forced us to allow for bare expressions
2015-03-19 09:28:04 -04:00
Toshio Kuratomi
7d2915442e
Update the extras module pointer
2015-03-18 20:25:06 -07:00
Toshio Kuratomi
ebc8193c48
Update core module pointer
2015-03-18 19:55:55 -07:00
Toshio Kuratomi
dbe0c4f771
Update docker module
2015-03-18 18:29:18 -07:00
Brian Coca
a4f2407328
added missing become method inventory override
2015-03-17 19:20:21 -04:00
Toshio Kuratomi
e819263820
Update core modules pointer
2015-03-17 11:02:53 -07:00
Brian Coca
2a229bdb6c
fixed issue with su in plays
2015-03-16 19:39:16 -04:00
Brian Coca
7fba952a9e
slight changes to allow for checksum and other commands to work correctly with quoting
2015-03-16 19:10:10 -04:00
Toshio Kuratomi
dc434dd74e
Update core pointer to make use of DOCKER_TLS_VERIFY env var:
...
https://github.com/ansible/ansible-modules-core/issues/946
2015-03-16 11:45:27 -07:00
Toshio Kuratomi
29407752c5
Update core modules pointer
2015-03-16 11:35:51 -07:00
Brian Coca
2823c8c987
fixed raw return check for privilege escalation
2015-03-16 14:00:50 -04:00
Toshio Kuratomi
28892cca14
Update core module pointer
2015-03-13 13:54:08 -07:00
Hartmut Goebel
41c892baf4
Fix detect of docker as virtualization_type.
...
Not only match`/docker/`, but also `docker-` followed by a hex-id.
Example (shortened):
```
$ cat /proc/1/cgroup
8:blkio:/system.slice/docker-de73f4d207861cf8757b69213ee67bb234b897a18bea7385964b6ed2d515da94.scope
7:net_cls:/
```
2015-03-13 11:43:25 -07:00
James Cammarata
8d847efa37
Fix issue with unarchive disabling pipelining mode
...
Was using persist_files=True when specifying the create paramater,
which breaks pipelining. Switched to use delete_remote_tmp=False instead,
which is the proper way to preserve the remove tmp dir when running
other modules from the action plugin.
2015-03-12 10:24:38 -05:00
Toshio Kuratomi
0e2a21f1fa
Update core pointer to pick up docker fix
2015-03-12 08:21:39 -07:00
Brian Coca
5f7cc8f0c1
changed from hash_merge to combine vars which resets default to
...
overwrite and not merge hashing
corrected merge vs combined in all pertinent sections
fixed typoe in combined_Vars
removed redundant inventory call, moved grousp to proper priority
readded inventory vars to runner's vars
correclty added inventory this time
2015-03-12 11:03:35 -04:00
Brian Coca
4db4fcd5a6
fixed missed conversion of su to become
2015-03-12 10:02:03 -04:00
Shirou WAKAYAMA
1c09660c44
set 'nonstring' arg to passthru.
2015-03-11 20:42:40 -07:00
Shirou WAKAYAMA
a388cd69c0
use to_unicode() in _jinja2_vars if type is str.
2015-03-11 20:42:31 -07:00
Toshio Kuratomi
8f05824dda
Update for another 3c2 fix
2015-03-11 19:09:07 -07:00
Toshio Kuratomi
7ea7279080
Update core modules to pull in fixes
2015-03-11 18:43:02 -07:00
Brian Coca
c997228896
fixed missed su to become conversion
2015-03-11 19:24:03 -04:00
Brian Coca
839d2a2a79
fixes password error detection for ssh connection plugin
...
removes sycnronize test that does not work with current sudo setup
Fixes #10434
2015-03-11 19:09:34 -04:00
Brian Coca
a2ff6cd5d0
removed uneeded reference to su_user
2015-03-11 11:58:49 -05:00
Brian Coca
44d9c02ba5
fixed traceback when x_user implicitly sets the become method
...
Fixes #10430
Also removed redundant resolution of sudo/su for backwards compatibility which
confused the conflict detection code.
2015-03-11 11:58:32 -05:00
Brian Coca
f0bdf0145a
fixed bad paren in connection plugin
2015-03-11 09:31:24 -04:00
Brian Coca
bce4bb2ce2
preliminary privlege escalation unification + pbrun
...
- become constants inherit existing sudo/su ones
- become command line options, marked sudo/su as deprecated and moved sudo/su passwords to runas group
- changed method signatures as privlege escalation is collapsed to become
- added tests for su and become, diabled su for lack of support in local.py
- updated playbook,play and task objects to become
- added become to runner
- added whoami test for become/sudo/su
- added home override dir for plugins
- removed useless method from ask pass
- forced become pass to always be string also uses to_bytes
- fixed fakerunner for tests
- corrected reference in synchronize action plugin
- added pfexec (needs testing)
- removed unused sudo/su in runner init
- removed deprecated info
- updated pe tests to allow to run under sudo and not need root
- normalized become options into a funciton to avoid duplication and inconsistencies
- pushed suppored list to connection classs property
- updated all connection plugins to latest 'become' pe
- includes fixes from feedback (including typos)
- added draft docs
- stub of become_exe, leaving for future v2 fixes
2015-03-10 17:42:52 -05:00
James Cammarata
f4329c8977
Submodule update for stable-1.9 branch
2015-03-10 17:27:58 -05:00
James Cammarata
6d5a5883fe
Setting up new release candidate versioning
2015-03-10 17:16:33 -05:00
Brian Coca
17c710e713
Merge pull request #10420 from bmanojlovic/devel
...
add missing AIX network facts discovery
2015-03-10 15:59:34 -04:00
Boris Manojlovic
a59784a581
don't use full path to command instead use module.get_bin_path
2015-03-10 19:44:39 +01:00
Matt Martz
4990814901
Prevent an empty error message
2015-03-10 11:30:28 -05:00
Boris Manojlovic
0f4cf8cb43
add missing AIX network facts discovery
2015-03-10 15:19:29 +01:00
pyroscope
d0197195ed
Handle /etc/os-release files with 'Raspbian' in them
2015-03-10 08:41:21 +01:00
Chris Church
919db1025c
Merge pull request #9601 from cchurch/set_delegate_before_connect
...
Set delegate on connection plugin before calling connect()
2015-03-08 21:12:39 -04:00
riedel
29cca0191b
Adding oVirt recognition for oVirt guests. oVirt uses KVM.
2015-03-07 10:17:41 -05:00
Toshio Kuratomi
3e311db128
Update core and extras module pointers
2015-03-06 21:02:40 -08:00
Toshio Kuratomi
d706fd1eda
Merge pull request #10388 from willthames/no_log_skipped
...
Don't log item data for skipped tasks under no_log
2015-03-05 16:34:38 -08:00
Brian Coca
c3d34a5386
Merge pull request #8936 from srvg/inventoryscript_onlychildren
...
Allow InventoryScript JSON with childgroups only
2015-03-05 17:11:04 -05:00
Brian Coca
761540e9fd
Merge pull request #10392 from sgordon46/devel
...
facts.py throws exception when run on RHEV hypervisor #10383
2015-03-05 12:09:49 -05:00
Brian Coca
aed493158c
Merge pull request #9428 from landryb/openbsd_add_mount_facts
...
parse /etc/fstab on OpenBSD to get mount facts
2015-03-05 12:07:27 -05:00
Stephen Gordon
b44bf0379b
facts.py throws exception when run on RHEV hypervisor #10383
2015-03-05 10:28:26 -06:00
Will Thames
13a591eac0
Don't log item data for skipped tasks under no_log
...
Tasks with `no_log` set should not log data.
Remove log of item data for skipped tasks in loops
Fix for #10387
2015-03-05 14:51:05 +10:00
Toshio Kuratomi
241b905e85
Update core module pointer to fix mysql bug
2015-03-04 18:59:12 -08:00
Toshio Kuratomi
983b617fb7
Update the modules
2015-03-04 18:56:50 -08:00
Toshio Kuratomi
fbc525cfb6
Use to_bytes instead of .encode(). Fixes the fact that errors is a positional argument, not a kw arg in .encode()
2015-03-04 11:07:00 -08:00
Toshio Kuratomi
ffb281d96c
Merge pull request #9600 from msabramo/make_AnsibleError_a_plain_ol_exception
...
Make AnsibleError a plain ol' exception
2015-03-03 09:56:09 -08:00
Brian Coca
d43f542c1e
Merge pull request #10373 from keithbentrup/patch-1
...
Incorrect keyword argument 'error'
2015-03-03 07:53:57 -05:00
Toshio Kuratomi
a8c02b7049
Rework the shell quoting of remote checksumming
...
Instead of getting rid of pipes.quote, use pipes.quote and get rid of
the manually entered toplevel quotes. This should properly escape
backslashes, quotes, and other characters.
Also fix the new checksumming python "one-liner" for csh.
ansible_shell_type needs to be set to csh.
Fixes #10363
Fixes #10353
2015-03-02 15:42:18 -08:00
Toshio Kuratomi
c14a436df9
Update core and extras module pointers
2015-03-02 15:40:11 -08:00
Keith
788258917f
Incorrect keyword argument 'error'
...
Incorrect keyword argument 'error'. It should be 'errors'.
2015-03-02 17:52:07 -05:00
James Cammarata
0314180dbe
Updating core modules submodule pointer
2015-03-02 09:46:26 -06:00
Toshio Kuratomi
a5ac9aafad
Update modules for docs fix
2015-02-27 08:50:09 -08:00
Brian Coca
49fce3587b
Merge pull request #10311 from jpmens/lookup-module-dig1
...
New lookup-plugin: `dig' for performing DNS lookups
2015-02-27 09:33:26 -05:00
Jan-Piet Mens
a3618f619e
New lookup-plugin: `dig' for performing DNS lookups
...
add support for argument qtype=XXX
remove spurious print
add dict returns
typo
Add dict returns for all major DNS types
Finish adding more types. For now. Until somebody complains.
I forgot to add NAPTR; here it is.
2015-02-27 09:16:50 +01:00
Toshio Kuratomi
38a5110250
Update core modules for docs fix
2015-02-26 22:53:27 -08:00
Toshio Kuratomi
084fbbdea9
Reverse the conditional so there's one less return from this function
2015-02-26 22:50:11 -08:00
Brian Coca
346689f9f2
Merge pull request #9293 from cchurch/module_suffixes
...
Simpler fix for module suffixes than c02e8d8c8
.
2015-02-26 23:33:51 -05:00
Brian Coca
5a64b2e269
Merge pull request #10305 from bcoca/cartesian
...
Cartesian
2015-02-26 23:25:33 -05:00
Brian Coca
942ff8d0b9
Merge pull request #10035 from phenomenes/fix_9911
...
Adds seconds to backup timestamp
2015-02-26 22:44:23 -05:00
Brian Coca
5d729edd2f
Merge pull request #9458 from sthen/openbsd_arch
...
set CPU architecture correctly for OpenBSD (powerpc not macppc, etc.)
2015-02-26 22:41:21 -05:00
Toshio Kuratomi
0f4b72cdfa
Refactor loop to only calculate the full_path once
2015-02-26 16:01:42 -08:00
Toshio Kuratomi
68c99a12b3
Merge pull request #10346 from lekum/find_plugin_bugfix
...
Bug fix: Search only for files as candidates
2015-02-26 15:38:45 -08:00
Toshio Kuratomi
89159951dc
Fix name of a task containing a template causing traceback
...
Workaround for #10321 Need to fix better in v2
2015-02-26 14:05:33 -08:00
Toshio Kuratomi
825dd25d43
Update module pointers
2015-02-26 13:52:10 -08:00
Toshio Kuratomi
8a5067d628
Adapt sanitize_output to log messages instead of assuming properly formatted key-value pairs
...
Fixes #10332
2015-02-26 12:31:11 -08:00
Alejandro Guirao
b8cf131375
Bug fix: Search only for files as candidates
2015-02-26 19:13:07 +01:00
Brian Coca
2d74bd4891
pulled in add_hosts docfix
2015-02-26 10:21:15 -05:00
Brian Coca
dfc4fc5374
updated submodule refs
2015-02-26 10:04:11 -05:00
Toshio Kuratomi
ac40ffa157
If remote_checksum fails because the dest is a directory, try a file within the dest.
...
Fixes #10300
2015-02-25 11:26:43 -08:00
Toshio Kuratomi
d5af0ba346
Comment explaining return codes from checksum()
2015-02-25 11:26:43 -08:00
Brian Coca
c81d981164
Merge pull request #10183 from bcoca/tag_control
...
adds complex tag management
2015-02-25 10:36:11 -05:00
Brian Coca
a1e2ae083d
Merge pull request #10320 from bcoca/ssh_fix_notokens
...
skips certain ssh errors and attempts to continue
2015-02-25 10:34:04 -05:00
Brian Coca
9ad8475be9
Merge pull request #9605 from msabramo/more_ssh_error_info
...
Display more info when SSH errors occur
2015-02-25 09:27:49 -05:00
Matt Stephenson
a2ea785d69
Add function to ipaddr for getting the nth host within a network
2015-02-23 13:42:03 -08:00
Matt Stephenson
ce17f5e1ec
Fix indentation
2015-02-23 12:51:19 -08:00
Brian Coca
65e68cdff9
Merge pull request #10316 from whereismyjetpack/winrm_https
...
plaintext https transport connecting over http
2015-02-23 11:00:33 -05:00
Toshio Kuratomi
a6fbd83660
* Transform vars_prompt result to unicode type before returning ( Fixes #10319 )
...
* Rename prompt method as do_prompt to avoid potential bug when logging via a callback plugin
2015-02-23 07:59:20 -08:00
Toshio Kuratomi
920b71984e
lists => frozenset as we're only using them in membership checks
2015-02-23 07:09:33 -08:00
Brian Coca
b9aa8f07be
skips certain ssh errors and attempts to continue
...
should fix #10225
2015-02-23 05:17:41 -05:00
Dann Bohn
5da5fa15c6
rm duplicate
2015-02-22 02:29:10 -05:00
Dann Bohn
b9bfb22a9d
fix https transport bug
2015-02-21 17:43:59 -05:00
Alvaro Lopez Ortega
2e929cf0ce
Fixes bug #10281 - Trailing zeros were truncated from strings
2015-02-21 19:54:38 +01:00
Alvaro Lopez Ortega
a14248ffe1
Fixes bug #10281 - Trailing zeros were truncated from strings
2015-02-21 16:40:50 +01:00
Brian Coca
6b64fe8bdd
Merge pull request #9936 from sysadmin75/9415_hostname_as_dir
...
Fixes #9415 - fetch: should use hostname instead of ip for directory name
2015-02-20 11:14:48 -05:00
Brian Coca
acbd096cf3
Merge pull request #10298 from bcoca/lookup_wantlist
...
Allow requesting a list to lookup plugins instead of , delimited string
2015-02-20 10:16:57 -05:00
Brian Coca
5d946ec4f2
adds cartesian product lookup
2015-02-20 09:04:00 -05:00
Brian Coca
1d90ff8b34
Merge pull request #10304 from dago/ldom
...
Add LDom support
2015-02-20 08:09:58 -05:00
Dagobert Michelsen
c1dba60961
Use try block for field splitting
2015-02-20 13:57:02 +01:00
Dagobert Michelsen
90e760ba84
Add LDom support
2015-02-20 10:11:06 +01:00
Brian Coca
57674fa047
Allow requesting a list to lookup plugins instead of , delimited string
2015-02-19 18:29:29 -05:00