Commit Graph

72 Commits

Author SHA1 Message Date
Spirit-act
ff13947aaf fix: use explicit boolean check for Ansible 2.19+ compatibility
Fixes implicit truthy conditional that fails in Ansible 2.19+.

Changes `when: scsi_devices['stdout'] | length` to `when: scsi_devices['stdout'] | length > 0` to return an explicit boolean value instead of an integer.

Closes #146 (duplicate PR)
2025-11-01 15:55:35 -04:00
Gino Naumann
91f8cfca5d Add pvresize option
You can now define the pvresize per vg.

To avoid a breaking change, the global option pvresize_to_max is set as default
2024-01-16 12:50:12 +01:00
Jason Cox
683c617265 fix commuity.general module names 2024-01-15 11:00:08 -07:00
Larry Smith Jr
d27a3809d9 Fixed linting issues 2023-06-15 08:52:28 -04:00
Aaron Hicks
74e7ca5652 Pass through opts to community.general.filesystem when creating a filesystem 2023-05-30 15:14:51 +12:00
Michal Nasiadka
a28791cc48 Change ansible_distribution usage to ansible_facts
Closes #95
2022-10-13 15:55:07 +02:00
Larry Smith Jr
ca903442c8 Merge pull request #89 from msielicki/master
skip resizing swap filesystem
2022-05-30 09:01:51 -04:00
Mariusz Sielicki
e9ff7e3faf fix for debian testing / sid 2022-05-27 18:23:17 +02:00
Mariusz Sielicki
84bfdf54ad skip resizing swap filesystem 2022-05-27 17:56:09 +02:00
Samuel Mutel
6e74c9714e enh: Add variable rescan_scsi_command 2022-04-11 13:49:46 +02:00
Christian González
71a3930e5b Fix syntax error on tasks/centos.yml 2022-01-13 10:50:13 +01:00
Larry Smith Jr
263c8d2b3f Merge pull request #73 from mnasiadka/mnasiadka/nvme_only
centos: Skip SCSI tasks on NVMe only hosts
2022-01-04 14:47:16 -05:00
Michal Nasiadka
0bfd390ace centos: Skip SCSI tasks on NVMe only hosts 2021-12-10 15:01:59 +01:00
Piotr Parczewski
cb3a75c984 CentOS: Optimise package installs 2021-11-22 20:27:27 +01:00
Mark Goddard
73b6bce608 Use ansible_facts to reference facts
By default, Ansible injects a variable for every fact, prefixed with
ansible_. This can result in a large number of variables for each host,
which at scale can incur a performance penalty. Ansible provides a
configuration option [0] that can be set to False to prevent this
injection of facts. In this case, facts should be referenced via
ansible_facts.<fact>.

This change updates all references to Ansible facts from using
individual fact variables to using the items in the
ansible_facts dictionary. This allows users to disable fact variable
injection in their Ansible configuration, which may provide some
performance improvement.

[0] https://docs.ansible.com/ansible/latest/reference_appendices/config.html#inject-facts-as-vars
2021-05-13 17:21:42 +01:00
Roxyrob
1bb56066fe * Doc: set subfile task comments 2021-03-19 19:28:54 +01:00
Roxyrob
cb792e59a6 * Refactor: aws code in its own tasks file to mitigate concerns about performance at scale 2021-03-18 15:38:22 +01:00
Roxyrob
48e3be3c5c * Refactor: task comment review 2021-03-17 13:46:10 +01:00
Roxyrob
2492c96566 * Fix: allow automatic pvresize also for ansible ersion 2.10 or above without new lvg collection version installed 2021-03-17 10:01:24 +01:00
Roxyrob
e4bc8a9e9b * Fix: lint 2021-03-17 01:40:26 +01:00
Roxyrob
1d57a469b0 * Fix: pvresize waiting for new collection lvg native support 2021-03-17 01:29:14 +01:00
Roxyrob
19e56ac7d8 * Fix: improve centos7/8 recognize scsi disk resize without reboot 2021-03-17 01:24:15 +01:00
Roxyrob
5c3e601078 * Fix: lint 2021-03-17 01:13:53 +01:00
Roxyrob
535b410363 * Fix: follow best practice for pipe in shell command 2021-03-16 23:24:24 +01:00
Roxyrob
34e4f08c31 * New: support mitigation for aws ec2 nvme random device name assignment 2021-03-16 19:41:37 +01:00
Charlie Mordant
b288695b9a lint 2020-06-07 17:25:33 +02:00
Charlie Mordant
ed0eb14ce8 xfs resize 2020-06-07 17:17:48 +02:00
Charlie Mordant
15b2b7b4e0 rebased mrjsmith 2020-05-14 23:43:59 +02:00
Charlie Mordant
c40f9b7d03 testing singl lv and only vg 2020-05-11 16:35:00 +02:00
Charlie Mordant
0621cadde8 avoid error when lv not defined 2020-05-11 14:36:04 +02:00
Charlie Mordant
b7cef8e323 avoid error when lv not defined 2020-05-11 14:26:48 +02:00
Charlie Mordant
59ffcfac4a avoid error when lv not defined 2020-05-11 14:23:32 +02:00
Charlie Mordant
976ff31d00 avoid error when lv not defined 2020-05-11 14:21:02 +02:00
Charlie Mordant
b731c20100 rename manage_lvm.yml due to recursive parsing error 2020-05-11 13:51:45 +02:00
Larry Smith Jr
e423ebd56b Fix original issue
- The previous patch did not resolve the original issue raised. This now
  works and has been tested with the configuration provided as part of
  the open issue.

- Resolves #42
2020-04-27 13:39:59 -04:00
Larry Smith Jr
881d5d77fa Fixing syntax issue for wantlist 2020-04-27 11:26:18 -04:00
Larry Smith Jr
89360e3ffe Trying to fix the subelements lookup for a single element
This addresses #42. Will need to do some validation testing, etc.
2020-04-27 11:16:02 -04:00
Charlie Mordant
325c2d6240 install xfs 2020-04-23 19:25:09 +02:00
Charlie Mordant
4a1177e420 use xfs_info on mountpoint instead of lvm 2020-04-21 19:01:29 +02:00
Charlie Mordant
2f63eab727 code smells 2020-04-17 12:56:31 +02:00
Charlie Mordant
050f8a56f1 typo in check 2020-04-15 19:08:34 +02:00
Charlie Mordant
b955a6f073 remove unwanted newline 2020-04-15 18:54:17 +02:00
Charlie Mordant
f81937e9d8 makes xfs mountpoint repeatable 2020-04-15 18:52:52 +02:00
Charlie Mordant
1c3818e5d0 mistake on remove volume 2020-04-15 17:34:53 +02:00
Charlie Mordant
17e8ec1058 configured molecule and fix xfs on centos 2020-04-15 16:56:18 +02:00
Charlie Mordant
ba5d929fce use dots instead of carets 2020-04-15 15:14:30 +02:00
Charlie Mordant
ea9109220b molecule test and idempotence 2020-04-15 14:33:41 +02:00
Samuel Mutel
d8b3a4e932 bug: Resize XFS parts is not working 2019-10-14 12:21:03 +02:00
Tony Peña
b15ecea51d Update debian.yml
Since ansible 2.8.0 must be change way using dict
2019-06-26 14:56:13 +02:00
Michele Caputo
9788ee5df6 issue #23: extra parenthesis 2019-04-08 14:16:04 +02:00