Compare commits

...

10 Commits

Author SHA1 Message Date
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
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
5 changed files with 16 additions and 5 deletions
+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
+1
View File
@@ -45,6 +45,7 @@
- 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)
+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"