- 26 Feb, 2014 2 commits
-
-
Sometimes, `blkid` will incorrectly return no information about a block device, even if it exists and has a valid filesystem. This causes the *filesystem* module to fail if *force=no*. Instructing `blkid` to use `/dev/null` as a cache file will force it to rescan the block device on each run, making results more consistent. Signed-off-by: Dustin C. Hatch <admiralnemo@gmail.com>
Dustin C. Hatch committed -
Fix setup module to gather facts from PowerPC Macs.
Michael DeHaan committed
-
- 25 Feb, 2014 22 commits
-
-
Chris Church committed
-
Rename flatten function.
Richard Isaacson committed -
flatten(x) is used a lot in the various lookup plugins where in each it is slightly different. This is to make this name slightly more unique.
Richard C Isaacson committed -
James Tanner committed
-
Fix fails on ubuntu due to missing /etc/motd Tests functional on centos6, ubuntu1204 and ubuntu1310 now.
Richard Isaacson committed -
Some systems that we are testing on may not have /etc/motd. So we need to create a file that we can control and use that for the further tests.
Richard C Isaacson committed -
Fixes #5869
James Cammarata committed -
lookup_plugins: loop over hashes Tests good with the global variables: ``` users: alice: name: Alice id: 12345 luna: name: Luna id: 23456 ``` and playbook tasks: ``` - name: Print records. debug: msg="User {{ item.key }} is {{ item.value.name }} {{ item.value.id }}" with_dict: users ```
Richard Isaacson committed -
Create a lookup plugin named dict that can be used to loop over hashes. It converts a dict into a list of key-value pairs, with attributes named "key" and "value." Also adds a brief explanation and simple example to the docs. Signed-off-by: Kent R. Spillner <kspillner@acm.org>
Kent R. Spillner committed -
James Tanner committed
-
James Tanner committed
-
James Tanner committed
-
-
Fixes #5869
James Cammarata committed -
James Cammarata committed
-
James Tanner committed
-
Fixed up merge for the lvol module.
Richard Isaacson committed -
Conflicts: library/system/lvol
Stefan J. Betz committed -
If you try to resize a lvol to the current size return a changed=False and don't fail.
Michael DeHaan committed -
Fix expires
Michael DeHaan committed
-
- 24 Feb, 2014 16 commits
-
-
This addresses GH-5165 and adds the ability to check if a lvol exists. The tests for this don't fit nicely into the current integration tests so they are below. ``` --- - name: remove any existing lv=one of vg=main lvol: lv=one vg=main state=absent - name: remove any existing lv=two of vg=main lvol: lv=two vg=main state=absent - name: check to see if lv=one of vg=main exists lvol: lv=one vg=main state=present ignore_errors: true register: lvol_result0 - name: Assert that we will get a "No size given." assert: that: - "'No size given.' in lvol_result0.msg" - name: create lv=one of vg=main sized 30g lvol: lv=one size=30g vg=main state=present register: lvol_result1 - name: Assert that we made changes." assert: that: - "lvol_result1.changed == True" - name: check to see if lv=one of vg=main exists lvol: lv=one vg=main state=present register: lvol_result2 - name: Assert that we did not make changes." assert: that: - "lvol_result2.changed == False" - name: remove lv=one of vg=main lvol: lv=one vg=main state=absent - name: create lv=two of vg=main sized 30G lvol: lv=two size=30G vg=main state=present register: lvol_result3 - name: Assert that we made changes." assert: that: - "lvol_result3.changed == True" - name: reduce lv=two of vg=main to 15G lvol: lv=two size=15G vg=main state=present register: lvol_result4 - name: Assert that we made changes." assert: that: - "lvol_result4.changed == True" - name: increase lv=two of vg=main to 30G lvol: lv=two size=30G vg=main state=present register: lvol_result5 - name: Assert that we made changes." assert: that: - "lvol_result5.changed == True" - name: create lv=two of vg=main sized 30G when already exists at 30G lvol: lv=two size=30g vg=main state=present register: lvol_result6 - name: Assert that we did not make changes." assert: that: - "lvol_result6.changed == False" - name: remove lv=two of vg=main lvol: lv=two vg=main state=absent ```
Richard C Isaacson committed -
Kyle Kelley committed
-
Merge branch '5853-python-2.5-apt_repository-fix' of https://github.com/timurbatyrshin/ansible into timurbatyrshin-5853-python-2.5-apt_repository-fix
James Cammarata committed -
James Cammarata committed
-
James Cammarata committed
-
Bugfixes: * the remote_src param was not being converted to a boolean correctly, resulting in it never being used by the module as the default behavior was remote_src=True (issue #5581) * the remote_src param was not listed in the generic file params, leading to a failure when the above bug regarding remote_src was fixed * the delimiter should always end with a newline to ensure that the file fragments do not run together on one line Fixes #5581
James Cammarata committed -
James Cammarata committed
-
Correct assert and add with_items test
Michael DeHaan committed -
James Laska committed
-
Vault rewrite, pass 1
jctanner committed -
Typo/Grammar fix.
Michael DeHaan committed -
James Tanner committed
-
allow ansible_ssh_private_key_file to be templated (thanks to benno)
jctanner committed -
jjshoe committed
-
James Tanner committed
-
James Tanner committed
-