Compare commits

...

23 Commits

Author SHA1 Message Date
Larry Smith Jr 84ba07bcaf Merge branch 'Aethylred-fsopts' 2023-06-14 20:48:02 -04:00
Larry Smith Jr a623248cdf Fixing Molecule lint test 2023-06-14 20:43:47 -04:00
Larry Smith Jr 55b1745ac3 Merge branch 'fsopts' of github.com:Aethylred/ansible-manage-lvm into Aethylred-fsopts 2023-06-14 20:39:51 -04:00
Larry Smith Jr c020c6ef2d Merge pull request #103 from mrlesmithjr/dependabot/pip/cryptography-41.0.0
Bump cryptography from 36.0.0 to 41.0.0
2023-06-04 00:49:41 -04:00
dependabot[bot] 47c980797d Bump cryptography from 36.0.0 to 41.0.0
Bumps [cryptography](https://github.com/pyca/cryptography) from 36.0.0 to 41.0.0.
- [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pyca/cryptography/compare/36.0.0...41.0.0)

---
updated-dependencies:
- dependency-name: cryptography
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-02 18:51:29 +00:00
Aaron Hicks d6dd5184f0 Merge branch 'fsopts' of github.com:Aethylred/ansible-manage-lvm into fsopts 2023-05-30 15:15:18 +12:00
Aaron Hicks 74e7ca5652 Pass through opts to community.general.filesystem when creating a filesystem 2023-05-30 15:14:51 +12:00
Larry Smith Jr 12346fa038 Update README.md 2023-05-29 10:28:29 -04:00
Larry Smith Jr 8dc044f7c2 Merge pull request #100 from mrlesmithjr/dependabot/pip/gitpython-3.1.30 2023-05-26 01:27:38 -04:00
Larry Smith Jr aa66814872 Merge pull request #101 from mrlesmithjr/dependabot/pip/requests-2.31.0 2023-05-26 01:22:38 -04:00
dependabot[bot] 6e4f217d74 Bump requests from 2.26.0 to 2.31.0
Bumps [requests](https://github.com/psf/requests) from 2.26.0 to 2.31.0.
- [Release notes](https://github.com/psf/requests/releases)
- [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md)
- [Commits](https://github.com/psf/requests/compare/v2.26.0...v2.31.0)

---
updated-dependencies:
- dependency-name: requests
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-23 02:06:03 +00:00
dependabot[bot] 483ed18874 Bump gitpython from 3.1.24 to 3.1.30
Bumps [gitpython](https://github.com/gitpython-developers/GitPython) from 3.1.24 to 3.1.30.
- [Release notes](https://github.com/gitpython-developers/GitPython/releases)
- [Changelog](https://github.com/gitpython-developers/GitPython/blob/main/CHANGES)
- [Commits](https://github.com/gitpython-developers/GitPython/compare/3.1.24...3.1.30)

---
updated-dependencies:
- dependency-name: gitpython
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-16 20:23:09 +00:00
Larry Smith Jr ea2e60f043 Merge pull request #96 from mnasiadka/ansible_facts_distribution
Change ansible_distribution usage to ansible_facts
2022-10-19 15:13:46 -04:00
Michal Nasiadka a28791cc48 Change ansible_distribution usage to ansible_facts
Closes #95
2022-10-13 15:55:07 +02:00
Aaron Hicks b5bf2d266c Pass through opts to community.general.filesystem when creating a filesystem 2022-08-04 14:47:03 +12:00
Larry Smith Jr ca903442c8 Merge pull request #89 from msielicki/master
skip resizing swap filesystem
2022-05-30 09:01:51 -04:00
Larry Smith Jr 9e69c74f71 Merge pull request #91 from msielicki/fix_for_debian_testing
fix for debian testing / sid
2022-05-30 09:01:41 -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
Larry Smith Jr 376f2ce641 Merge pull request #86 from smutel/FixIssue85
Add variable rescan_scsi_command
2022-04-26 09:30:50 -04:00
Samuel Mutel 6e74c9714e enh: Add variable rescan_scsi_command 2022-04-11 13:49:46 +02:00
Larry Smith Jr 1f966d2ea1 Merge pull request #81 from christian7007/master 2022-01-13 08:39:41 -05:00
Christian González 71a3930e5b Fix syntax error on tasks/centos.yml 2022-01-13 10:50:13 +01:00
10 changed files with 1459 additions and 1356 deletions
+5 -9
View File
@@ -10,25 +10,21 @@ on:
- develop
- main
- master
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
lint:
# The type of runner that the job will run on
runs-on: macos-10.15
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 4
matrix:
python-version: [3.8]
python-version: [3.9]
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v2
+2
View File
@@ -32,3 +32,5 @@ Larry Smith Jr.
- [@mrlesmithjr](https://twitter.com/mrlesmithjr)
- [mrlesmithjr@gmail.com](mailto:mrlesmithjr@gmail.com)
- [http://everythingshouldbevirtual.com](http://everythingshouldbevirtual.com)
<a href="https://www.buymeacoffee.com/mrlesmithjr" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" ></a>
+16
View File
@@ -31,6 +31,8 @@ lvm_groups: []
# size: 40g
# create: true
# filesystem: ext4
# # Defines options passed to the filesystem creation command
# fsopts:
# mount: true
# mntp: /
# - vgname: test-vg
@@ -57,6 +59,20 @@ lvm_groups: []
# lvnames:
# # Set to None to only create LVM VG w/out creating LVM LVOLS
# - None
# # Using fsopts to create a docker compatible xfs volume
# - vgname: docker-volumes
# disks:
# - /dev/vdc
# - /dev/vdd
# create: true
# lvnames:
# - lvname: docker_1
# size: 100%FREE
# create: true
# filesystem: xfs
# fsopts: -n ftype=1
# mount: true
# mntp: /var/lib/docker
# Defines if LVM will be managed by role
# default is false to ensure nothing is changed by accident.
Generated
+1418 -1341
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -33,7 +33,7 @@ filelock==3.4.0; python_version >= "3.6" and python_full_version < "3.0.0" or py
flake8==4.0.1; python_version >= "3.6"
ghp-import==2.0.2; python_version >= "3.6"
gitdb==4.0.9; python_version >= "3.7"
gitpython==3.1.24; python_version >= "3.7"
gitpython==3.1.30; python_version >= "3.7"
html5lib==1.1; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0"
identify==2.4.0; python_full_version >= "3.6.1"
idna==3.3; python_version >= "3.5" and python_full_version < "3.0.0" or python_full_version >= "3.6.0" and python_version >= "3.5"
+4 -4
View File
@@ -44,8 +44,8 @@
- block:
- name: centos | installing sg3_utils
package:
name: sg3_utils
state: present
name: sg3_utils
state: present
become: true
- name: centos | checking for scsi devices
@@ -55,13 +55,13 @@
changed_when: false
- name: centos | rescanning for new disks
command: /usr/bin/rescan-scsi-bus.sh
command: "{{ rescan_scsi_command }}"
become: true
changed_when: false
when: scsi_devices.stdout|length > 0
- name: centos | rescanning for resized disks
command: /usr/bin/rescan-scsi-bus.sh -s
command: "{{ rescan_scsi_command }} -s"
become: true
changed_when: false
when: scsi_devices.stdout|length > 0
+2
View File
@@ -45,12 +45,14 @@
- lv.create|bool
- lv.filesystem is defined
- lv.filesystem != 'None'
- lv.filesystem != 'swap'
- lv.filesystem != 'xfs'
- name: create_fs | creating new xfs filesystem on new LVM logical volume(s)
filesystem:
fstype: "{{ lv.filesystem }}"
dev: "/dev/{{ vg.vgname }}/{{ lv.lvname }}"
opts: "{{ lv.fsopts | default(omit) }}"
become: true
when:
- mountedxfs is failed
+1 -1
View File
@@ -34,7 +34,7 @@
changed_when: false
- name: debian | rescanning for new disks added
command: /sbin/rescan-scsi-bus
command: "{{ rescan_scsi_command }}"
become: true
changed_when: false
when: scsi_devices['stdout'] | length
+8
View File
@@ -1,5 +1,13 @@
---
# tasks file for ansible-manage-lvm
- name: Set rescan_scsi_command for old debian version
set_fact:
rescan_scsi_command: "/sbin/rescan-scsi-bus"
when:
- ansible_facts.distribution | replace(' ','') | lower == 'debian'
- ansible_facts.distribution_release not in ('bookworm', 'sid')
- ansible_facts.distribution_major_version is version(10, '<=')
- include_tasks: debian.yml
when: ansible_facts.os_family == "Debian"
+2
View File
@@ -3,3 +3,5 @@
ebsnvme_binary_helper_file: go-ebsnvme_{{ ebsnvme_binary_helper_ver }}_linux_amd64.tar.gz
ebsnvme_binary_helper_url: https://github.com/mvisonneau/go-ebsnvme/releases/download/{{ ebsnvme_binary_helper_ver }}/{{ ebsnvme_binary_helper_file }}
rescan_scsi_command: "/usr/bin/rescan-scsi-bus.sh"