ansible/library/system
Richard C Isaacson bf30707670 If you try to resize a lvol to the current size return a changed=False and don't fail.
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
```
2014-02-24 16:56:08 -06:00
..
at Tested implementation adding action option for (add, delete, unique). 2014-01-28 20:29:41 -05:00
authorized_key Updated authorized_key module documentation regarding manage_dir 2014-01-29 23:39:43 +01:00
cron Fixes #5023 Convert all modules to use new snippet import pattern 2013-12-02 15:11:23 -05:00
facter Addresses #5023 Fix import comments 2013-12-02 15:13:49 -05:00
filesystem Addresses #5023 Fix import comments 2013-12-02 15:13:49 -05:00
firewalld Fixes #5023 Convert all modules to use new snippet import pattern 2013-12-02 15:11:23 -05:00
group Fixes #5023 Convert all modules to use new snippet import pattern 2013-12-02 15:11:23 -05:00
hostname Add support for Scientific Linux for hostname module 2014-01-16 16:08:51 -05:00
kernel_blacklist Addresses #5023 Fix import comments 2013-12-02 15:13:49 -05:00
lvg Addresses #5023 Fix import comments 2013-12-02 15:13:49 -05:00
lvol If you try to resize a lvol to the current size return a changed=False and don't fail. 2014-02-24 16:56:08 -06:00
modprobe Merge remote-tracking branch 'berendt/fixing_permissions' into pull_4703 2014-02-17 11:46:23 -06:00
mount Addresses #5023 Fix import comments 2013-12-02 15:13:49 -05:00
ohai Addresses #5023 Fix import comments 2013-12-02 15:13:49 -05:00
open_iscsi Addresses #5023 Fix import comments 2013-12-02 15:13:49 -05:00
ping Add version_added to all modules missing version_added information, the docs formatter will now 2013-11-18 18:55:49 -05:00
seboolean Fixes #5023 Convert all modules to use new snippet import pattern 2013-12-02 15:11:23 -05:00
selinux Fixes #5023 Convert all modules to use new snippet import pattern 2013-12-02 15:11:23 -05:00
service Merge pull request #5554 from ttarabul/devel 2014-02-04 10:59:19 -08:00
setup Merge remote-tracking branch 'berendt/fixing_permissions' into pull_4703 2014-02-17 11:46:23 -06:00
sysctl sysctl: parse bool value as 0/1 and refactor a little bit 2014-01-27 20:26:11 +01:00
user Fix broken behavior when removing all auxiliary groups from a user 2014-02-10 13:08:53 -08:00
zfs Fix zfs create command for properties with spaces 2014-02-18 11:30:17 +01:00