You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/system
Richard C Isaacson eb2762bc5b 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
```
11 years ago
..
at Tested implementation adding action option for (add, delete, unique). 11 years ago
authorized_key Updated authorized_key module documentation regarding manage_dir 11 years ago
cron Fixes #5023 Convert all modules to use new snippet import pattern 11 years ago
facter Addresses #5023 Fix import comments 11 years ago
filesystem Addresses #5023 Fix import comments 11 years ago
firewalld Fixes #5023 Convert all modules to use new snippet import pattern 11 years ago
group Fixes #5023 Convert all modules to use new snippet import pattern 11 years ago
hostname Add support for Scientific Linux for hostname module 11 years ago
kernel_blacklist Addresses #5023 Fix import comments 11 years ago
lvg Addresses #5023 Fix import comments 11 years ago
lvol If you try to resize a lvol to the current size return a changed=False and don't fail. 11 years ago
modprobe Merge remote-tracking branch 'berendt/fixing_permissions' into pull_4703 11 years ago
mount Addresses #5023 Fix import comments 11 years ago
ohai Addresses #5023 Fix import comments 11 years ago
open_iscsi Addresses #5023 Fix import comments 11 years ago
ping Add version_added to all modules missing version_added information, the docs formatter will now 11 years ago
seboolean Fixes #5023 Convert all modules to use new snippet import pattern 11 years ago
selinux Fixes #5023 Convert all modules to use new snippet import pattern 11 years ago
service Merge pull request #5554 from ttarabul/devel 11 years ago
setup Merge remote-tracking branch 'berendt/fixing_permissions' into pull_4703 11 years ago
sysctl sysctl: parse bool value as 0/1 and refactor a little bit 11 years ago
user Fix broken behavior when removing all auxiliary groups from a user 11 years ago
zfs Fix zfs create command for properties with spaces 11 years ago