mirror of
https://github.com/mrlesmithjr/ansible-manage-lvm.git
synced 2026-09-02 21:50:36 +03:00
Compare commits
13 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 263c8d2b3f | |||
| 0bfd390ace | |||
| 71bc56d733 | |||
| 59ca2aae95 | |||
| cb3a75c984 | |||
| fae4332de8 | |||
| 3ea52cdda8 | |||
| 2d020f26d8 | |||
| 558cd7460e | |||
| 3b00335935 | |||
| ac014a161e | |||
| 9446ef21d6 | |||
| 97300430ad |
@@ -0,0 +1 @@
|
|||||||
|
skip_list: []
|
||||||
@@ -1,41 +1,46 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
# This is a basic workflow to help you get started with Actions
|
|
||||||
|
|
||||||
name: Molecule
|
name: Molecule
|
||||||
|
|
||||||
# Controls when the action will run. Triggers the workflow on push or pull request
|
|
||||||
# events but only for the master branch
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
branches-ignore:
|
||||||
|
- main
|
||||||
|
- master
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
|
- develop
|
||||||
|
- main
|
||||||
- master
|
- master
|
||||||
- tags/*
|
|
||||||
|
|
||||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
# The type of runner that the job will run on
|
# The type of runner that the job will run on
|
||||||
runs-on: ubuntu-latest
|
runs-on: macos-10.15
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
max-parallel: 4
|
||||||
|
matrix:
|
||||||
|
python-version: [3.8]
|
||||||
|
|
||||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||||
steps:
|
steps:
|
||||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
- name: install lint prerequisite
|
submodules: recursive
|
||||||
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
|
uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
|
python-version: ${{ matrix.python-version }}
|
||||||
|
- uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: ~/.cache/pip
|
||||||
|
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-pip-
|
||||||
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt -y install python3-setuptools ansible-lint
|
python -m pip install --upgrade pip
|
||||||
|
pip install -r requirements.txt -r requirements-dev.txt
|
||||||
- name: Install molecule
|
|
||||||
run: |
|
|
||||||
sudo apt update
|
|
||||||
sudo apt -y install python3-setuptools python3 python3-pip docker vagrant
|
|
||||||
sudo pip3 install wheel
|
|
||||||
sudo pip3 install molecule testinfra yamllint ansible-lint flake8 molecule-vagrant
|
|
||||||
|
|
||||||
- name: molecule lint
|
- name: molecule lint
|
||||||
run: |
|
run: |
|
||||||
molecule lint
|
molecule lint
|
||||||
|
|||||||
@@ -0,0 +1,34 @@
|
|||||||
|
---
|
||||||
|
name: Ansible Galaxy
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- master
|
||||||
|
release:
|
||||||
|
types:
|
||||||
|
- published
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
galaxy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
|
uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
|
python-version: ${{ matrix.python-version }}
|
||||||
|
- uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: ~/.cache/pip
|
||||||
|
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-pip-
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
pip install -r requirements.txt -r requirements-dev.txt
|
||||||
|
- name: Trigger a new import on Galaxy.
|
||||||
|
run: ansible-galaxy role import --api-key ${{ secrets.GALAXY_API_KEY }} $(echo ${{ github.repository }} | cut -d/ -f1) $(echo ${{ github.repository }} | cut -d/ -f2)
|
||||||
+1
-1
@@ -1,3 +1,3 @@
|
|||||||
.idea
|
.idea
|
||||||
**/__pycache__
|
**/__pycache__
|
||||||
venv/
|
.venv/
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
extends: default
|
extends: default
|
||||||
|
|
||||||
ignore: |
|
ignore: |
|
||||||
venv/
|
.venv/
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
braces:
|
braces:
|
||||||
|
|||||||
@@ -2,6 +2,8 @@
|
|||||||
galaxy_info:
|
galaxy_info:
|
||||||
author: Larry Smith Jr.
|
author: Larry Smith Jr.
|
||||||
description: Ansible role to manage(create, extend, resize) LVM Groups/Logical Volumes.
|
description: Ansible role to manage(create, extend, resize) LVM Groups/Logical Volumes.
|
||||||
|
namespace: mrlesmithjr
|
||||||
|
role_name: manage-lvm
|
||||||
|
|
||||||
license: MIT
|
license: MIT
|
||||||
min_ansible_version: 1.2
|
min_ansible_version: 1.2
|
||||||
|
|||||||
@@ -3,7 +3,10 @@ driver:
|
|||||||
name: vagrant
|
name: vagrant
|
||||||
provider:
|
provider:
|
||||||
name: virtualbox
|
name: virtualbox
|
||||||
lint: yamllint . && flake8 && ansible-lint
|
lint: |
|
||||||
|
yamllint .
|
||||||
|
ansible-lint
|
||||||
|
flake8
|
||||||
platforms:
|
platforms:
|
||||||
- name: CentOS-Molecule-LVM
|
- name: CentOS-Molecule-LVM
|
||||||
box: mrlesmithjr/centos7
|
box: mrlesmithjr/centos7
|
||||||
|
|||||||
Generated
+2174
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,30 @@
|
|||||||
|
[tool.poetry]
|
||||||
|
name = "ansible-manage-lvm"
|
||||||
|
version = "0.1.0"
|
||||||
|
description = ""
|
||||||
|
authors = ["Larry Smith Jr. <mrlesmithjr@gmail.com>"]
|
||||||
|
|
||||||
|
[tool.poetry.dependencies]
|
||||||
|
python = "^3.10"
|
||||||
|
ansible = "4.2.0"
|
||||||
|
|
||||||
|
[tool.poetry.dev-dependencies]
|
||||||
|
bandit = "^1.7.1"
|
||||||
|
black = "^21.11b1"
|
||||||
|
flake8 = "^4.0.1"
|
||||||
|
mypy = "^0.910"
|
||||||
|
poetry = "^1.1.11"
|
||||||
|
pylint = "^2.11.1"
|
||||||
|
ansible-lint = "4.2.0"
|
||||||
|
yamllint = "1.23.0"
|
||||||
|
mkdocs = "^1.2.3"
|
||||||
|
autopep8 = "^1.6.0"
|
||||||
|
pycodestyle = "^2.8.0"
|
||||||
|
pip-tools = "^6.4.0"
|
||||||
|
molecule = "3.0.3"
|
||||||
|
molecule-vagrant = "0.2"
|
||||||
|
pre-commit = "^2.15.0"
|
||||||
|
|
||||||
|
[build-system]
|
||||||
|
requires = ["poetry-core>=1.0.0"]
|
||||||
|
build-backend = "poetry.core.masonry.api"
|
||||||
+114
-66
@@ -1,66 +1,114 @@
|
|||||||
ansible==2.9.7
|
ansible-core==2.11.6; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0"
|
||||||
ansible-lint==4.2.0
|
ansible-lint==4.2.0; (python_version >= "2.7" and python_full_version < "3.0.0") or (python_full_version >= "3.5.0")
|
||||||
arrow==0.15.5
|
ansible==4.2.0; (python_version >= "2.7" and python_full_version < "3.0.0") or (python_full_version >= "3.5.0")
|
||||||
attrs==19.3.0
|
arrow==1.2.1; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.6"
|
||||||
bcrypt==3.1.7
|
astroid==2.8.6; python_version >= "3.6" and python_version < "4.0"
|
||||||
binaryornot==0.4.4
|
autopep8==1.6.0
|
||||||
Cerberus==1.3.2
|
backports.entry-points-selectable==1.1.1; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "2.7"
|
||||||
certifi==2020.4.5.1
|
bandit==1.7.1; python_version >= "3.5"
|
||||||
cffi==1.14.0
|
bcrypt==3.2.0; python_version >= "3.6"
|
||||||
chardet==3.0.4
|
binaryornot==0.4.4; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.6"
|
||||||
click==7.1.1
|
black==21.11b1; python_full_version >= "3.6.2"
|
||||||
click-completion==0.5.2
|
cachecontrol==0.12.10; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.6"
|
||||||
click-help-colors==0.8
|
cachy==0.3.0; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0"
|
||||||
colorama==0.4.3
|
cerberus==1.3.2; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.6"
|
||||||
cookiecutter==1.7.0
|
certifi==2021.10.8; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.6.0"
|
||||||
cryptography==2.9
|
cffi==1.15.0; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.6"
|
||||||
distro==1.5.0
|
cfgv==3.3.1; python_full_version >= "3.6.1"
|
||||||
docker==4.2.0
|
chardet==4.0.0; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.6"
|
||||||
entrypoints==0.3
|
charset-normalizer==2.0.7; python_full_version >= "3.6.0" and python_version >= "3"
|
||||||
fasteners==0.15
|
cleo==0.8.1; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0"
|
||||||
flake8==3.7.9
|
click-completion==0.5.2; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.6"
|
||||||
future==0.18.2
|
click-help-colors==0.9.1; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.6"
|
||||||
idna==2.9
|
click==8.0.3; python_version >= "3.6" and python_full_version >= "3.6.2" and (python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.6")
|
||||||
importlib-metadata==1.6.0
|
clikit==0.6.2; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0"
|
||||||
Jinja2==2.11.2
|
colorama==0.4.4; platform_system == "Windows" and python_version >= "3.6" and python_full_version >= "3.6.2" and python_version < "4.0" and sys_platform == "win32" and (python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.6")
|
||||||
jinja2-time==0.2.0
|
cookiecutter==1.7.3; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.6"
|
||||||
MarkupSafe==1.1.1
|
crashtest==0.3.1; python_version >= "3.6" and python_version < "4.0" and (python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0")
|
||||||
mccabe==0.6.1
|
cryptography==36.0.0; python_version >= "3.6" and python_full_version < "3.0.0" and python_version < "4.0" and (python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0") and sys_platform == "linux" or python_full_version >= "3.5.0" and python_version >= "3.6" and python_version < "4.0" and (python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0") and sys_platform == "linux"
|
||||||
molecule==3.0.3
|
distlib==0.3.3; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0"
|
||||||
molecule-vagrant==0.2
|
distro==1.6.0; python_version >= "3.6" and python_full_version < "3.0.0" and sys_platform == "linux" or python_version >= "3.6" and python_full_version < "3.0.0" and sys_platform == "linux2" or sys_platform == "linux" and python_version >= "3.6" and python_full_version >= "3.4.0" or sys_platform == "linux2" and python_version >= "3.6" and python_full_version >= "3.4.0"
|
||||||
monotonic==1.5
|
fasteners==0.16.3; python_version >= "3.6"
|
||||||
more-itertools==8.2.0
|
filelock==3.4.0; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.6"
|
||||||
packaging==20.3
|
flake8==4.0.1; python_version >= "3.6"
|
||||||
paramiko==2.7.1
|
ghp-import==2.0.2; python_version >= "3.6"
|
||||||
pathspec==0.8.0
|
gitdb==4.0.9; python_version >= "3.7"
|
||||||
pexpect==4.8.0
|
gitpython==3.1.24; python_version >= "3.7"
|
||||||
pluggy==0.13.1
|
html5lib==1.1; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0"
|
||||||
poyo==0.5.0
|
identify==2.4.0; python_full_version >= "3.6.1"
|
||||||
ptyprocess==0.6.0
|
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"
|
||||||
py==1.8.1
|
importlib-metadata==4.8.2; python_version >= "3.6"
|
||||||
pycodestyle==2.5.0
|
isort==5.10.1; python_full_version >= "3.6.1" and python_version < "4.0" and python_version >= "3.6"
|
||||||
pycparser==2.20
|
jeepney==0.7.1; python_version >= "3.6" and python_version < "4.0" and (python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0") and sys_platform == "linux"
|
||||||
pyflakes==2.1.1
|
jinja2-time==0.2.0; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.6"
|
||||||
PyNaCl==1.3.0
|
jinja2==3.0.3; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.6"
|
||||||
pyparsing==2.4.7
|
keyring==21.8.0; python_version >= "3.6" and python_version < "4.0" and (python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0")
|
||||||
pytest==5.4.1
|
lazy-object-proxy==1.6.0; python_version >= "3.6" and python_full_version < "3.0.0" and python_version < "4.0" or python_version >= "3.6" and python_version < "4.0" and python_full_version >= "3.6.0"
|
||||||
python-dateutil==2.8.1
|
lockfile==0.12.2; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.6"
|
||||||
python-gilt==1.2.3
|
markdown==3.3.6; python_version >= "3.6"
|
||||||
python-vagrant==0.5.15
|
markupsafe==2.0.1; python_version >= "3.6"
|
||||||
PyYAML==5.3.1
|
mccabe==0.6.1; python_version >= "3.6" and python_version < "4.0"
|
||||||
requests==2.23.0
|
mergedeep==1.3.4; python_version >= "3.6"
|
||||||
ruamel.yaml==0.16.10
|
mkdocs==1.2.3; python_version >= "3.6"
|
||||||
ruamel.yaml.clib==0.2.0
|
molecule-vagrant==0.2; (python_version >= "2.7" and python_full_version < "3.0.0") or (python_full_version >= "3.5.0")
|
||||||
selinux==0.2.1
|
molecule==3.0.3; python_version >= "3.6"
|
||||||
sh==1.12.14
|
msgpack==1.0.2; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.6"
|
||||||
shellingham==1.3.2
|
mypy-extensions==0.4.3; python_full_version >= "3.6.2" and python_version >= "3.5"
|
||||||
six==1.14.0
|
mypy==0.910; python_version >= "3.5"
|
||||||
tabulate==0.8.7
|
nodeenv==1.6.0; python_full_version >= "3.6.1"
|
||||||
testinfra==5.0.0
|
packaging==20.9; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.6"
|
||||||
tree-format==0.1.2
|
paramiko==2.8.0; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.6"
|
||||||
urllib3==1.25.9
|
pastel==0.2.1; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0"
|
||||||
wcwidth==0.1.9
|
pathspec==0.9.0; python_full_version >= "3.6.2" and python_version >= "3.6"
|
||||||
websocket-client==0.57.0
|
pbr==5.8.0; python_version >= "3.6"
|
||||||
whichcraft==0.6.1
|
pep517==0.12.0; python_version >= "3.6"
|
||||||
yamllint==1.23.0
|
pexpect==4.8.0; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.6"
|
||||||
zipp==3.1.0
|
pip-tools==6.4.0; python_version >= "3.6"
|
||||||
|
pkginfo==1.8.1; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0"
|
||||||
|
platformdirs==2.4.0; python_version >= "3.6" and python_full_version >= "3.6.2" and python_version < "4.0" and (python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.6")
|
||||||
|
pluggy==0.13.1; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.6"
|
||||||
|
poetry-core==1.0.7; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0"
|
||||||
|
poetry==1.1.11; (python_version >= "2.7" and python_full_version < "3.0.0") or (python_full_version >= "3.5.0")
|
||||||
|
poyo==0.5.0; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.6"
|
||||||
|
pre-commit==2.15.0; python_full_version >= "3.6.1"
|
||||||
|
ptyprocess==0.7.0; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0"
|
||||||
|
pycodestyle==2.8.0; (python_version >= "2.7" and python_full_version < "3.0.0") or (python_full_version >= "3.5.0")
|
||||||
|
pycparser==2.21; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.6"
|
||||||
|
pyflakes==2.4.0; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.4.0" and python_version >= "3.6"
|
||||||
|
pylev==1.4.0; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0"
|
||||||
|
pylint==2.11.1; python_version >= "3.6" and python_version < "4.0"
|
||||||
|
pynacl==1.4.0; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.4.0" and python_version >= "3.6"
|
||||||
|
pyparsing==3.0.6; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.6"
|
||||||
|
python-dateutil==2.8.2; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.6"
|
||||||
|
python-gilt==1.2.3; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.6"
|
||||||
|
python-slugify==5.0.2; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.6"
|
||||||
|
python-vagrant==0.5.15; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0"
|
||||||
|
pywin32-ctypes==0.2.0; python_version >= "3.6" and python_version < "4.0" and (python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0") and sys_platform == "win32"
|
||||||
|
pyyaml-env-tag==0.1; python_version >= "3.6"
|
||||||
|
pyyaml==5.4.1; python_full_version >= "3.6.1" and python_version >= "3.6" and (python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.6.0") and (python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.6.0" and python_version >= "3.6")
|
||||||
|
regex==2021.11.10; python_full_version >= "3.6.2"
|
||||||
|
requests-toolbelt==0.9.1; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0"
|
||||||
|
requests==2.26.0; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.6.0" and python_version >= "3.6"
|
||||||
|
resolvelib==0.5.5; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0"
|
||||||
|
ruamel.yaml==0.17.17; python_version >= "3.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.7"
|
||||||
|
secretstorage==3.3.1; python_version >= "3.6" and python_version < "4.0" and (python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0") and sys_platform == "linux"
|
||||||
|
selinux==0.2.1; python_version >= "3.6" and python_full_version < "3.0.0" and sys_platform == "linux" or python_version >= "3.6" and python_full_version < "3.0.0" and sys_platform == "linux2" or sys_platform == "linux" and python_version >= "3.6" and python_full_version >= "3.5.0" or sys_platform == "linux2" and python_version >= "3.6" and python_full_version >= "3.5.0"
|
||||||
|
sh==1.14.2; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.6"
|
||||||
|
shellingham==1.4.0; python_version >= "3.6" and python_full_version < "3.0.0" or python_version >= "3.6" and python_full_version >= "3.5.0"
|
||||||
|
six==1.16.0; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.6"
|
||||||
|
smmap==5.0.0; python_version >= "3.7"
|
||||||
|
stevedore==3.5.0; python_version >= "3.6"
|
||||||
|
tabulate==0.8.9; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.6"
|
||||||
|
text-unidecode==1.3; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.6"
|
||||||
|
toml==0.10.2; python_full_version >= "3.6.1" and python_version >= "3.6" and python_version < "4.0"
|
||||||
|
tomli==1.2.2; python_version >= "3.6" and python_full_version >= "3.6.2"
|
||||||
|
tomlkit==0.7.2; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0"
|
||||||
|
tree-format==0.1.2; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.6"
|
||||||
|
typing-extensions==4.0.0
|
||||||
|
urllib3==1.26.7; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.6.0" and python_version < "4"
|
||||||
|
virtualenv==20.10.0; python_full_version >= "3.6.1"
|
||||||
|
watchdog==2.1.6; python_version >= "3.6"
|
||||||
|
webencodings==0.5.1; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0"
|
||||||
|
wrapt==1.13.3; python_version >= "3.6" and python_full_version < "3.0.0" and python_version < "4.0" or python_version >= "3.6" and python_version < "4.0" and python_full_version >= "3.5.0"
|
||||||
|
yamllint==1.23.0; (python_version >= "2.7" and python_full_version < "3.0.0") or (python_full_version >= "3.4.0")
|
||||||
|
zipp==3.6.0; python_version >= "3.6"
|
||||||
|
|||||||
+11
-7
@@ -1,7 +1,11 @@
|
|||||||
ansible-lint==4.2.0
|
ansible-core==2.11.6; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0"
|
||||||
docker==4.2.0
|
ansible==4.2.0; (python_version >= "2.7" and python_full_version < "3.0.0") or (python_full_version >= "3.5.0")
|
||||||
flake8==3.7.9
|
cffi==1.15.0; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.6"
|
||||||
molecule-vagrant==0.2
|
cryptography==36.0.0; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.6"
|
||||||
molecule==3.0.3
|
jinja2==3.0.3; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.6"
|
||||||
testinfra==5.0.0
|
markupsafe==2.0.1; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.6"
|
||||||
yamllint==1.23.0
|
packaging==20.9; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0"
|
||||||
|
pycparser==2.21; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.6"
|
||||||
|
pyparsing==3.0.6; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.6"
|
||||||
|
pyyaml==5.4.1; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.6.0"
|
||||||
|
resolvelib==0.5.5; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0"
|
||||||
|
|||||||
+34
-22
@@ -1,19 +1,15 @@
|
|||||||
---
|
---
|
||||||
- name: centos | installing lvm2
|
- name: centos | installing lvm2 and sg3_utils
|
||||||
package:
|
package:
|
||||||
name: lvm2
|
name:
|
||||||
|
- lvm2
|
||||||
|
- sg3_utils
|
||||||
state: present
|
state: present
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
- include_tasks: amazon.yml
|
- include_tasks: amazon.yml
|
||||||
when: ansible_facts.system_vendor == 'Amazon EC2'
|
when: ansible_facts.system_vendor == 'Amazon EC2'
|
||||||
|
|
||||||
- name: centos | installing sg3_utils
|
|
||||||
package:
|
|
||||||
name: sg3_utils
|
|
||||||
state: present
|
|
||||||
become: true
|
|
||||||
|
|
||||||
- name: centos | debug lvg
|
- name: centos | debug lvg
|
||||||
debug:
|
debug:
|
||||||
var: lv
|
var: lv
|
||||||
@@ -38,20 +34,36 @@
|
|||||||
- lv.1.create is defined
|
- lv.1.create is defined
|
||||||
- lv.1.create|bool
|
- lv.1.create|bool
|
||||||
|
|
||||||
- name: centos | checking for scsi devices
|
- name: centos | check for scsi adapters
|
||||||
command: sg_scan
|
find:
|
||||||
|
paths: "/sys/class/scsi_host"
|
||||||
|
file_type: any
|
||||||
become: true
|
become: true
|
||||||
register: scsi_devices
|
register: scsi_adapters
|
||||||
changed_when: false
|
|
||||||
|
|
||||||
- name: centos | rescanning for new disks
|
- block:
|
||||||
command: /usr/bin/rescan-scsi-bus.sh
|
- name: centos | installing sg3_utils
|
||||||
become: true
|
package:
|
||||||
changed_when: false
|
name: sg3_utils
|
||||||
when: scsi_devices.stdout|length > 0
|
state: present
|
||||||
|
become: true
|
||||||
|
|
||||||
- name: centos | rescanning for resized disks
|
- name: centos | checking for scsi devices
|
||||||
command: /usr/bin/rescan-scsi-bus.sh -s
|
command: sg_scan
|
||||||
become: true
|
become: true
|
||||||
changed_when: false
|
register: scsi_devices
|
||||||
when: scsi_devices.stdout|length > 0
|
changed_when: false
|
||||||
|
|
||||||
|
- name: centos | rescanning for new disks
|
||||||
|
command: /usr/bin/rescan-scsi-bus.sh
|
||||||
|
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
|
||||||
|
become: true
|
||||||
|
changed_when: false
|
||||||
|
when: scsi_devices.stdout|length > 0
|
||||||
|
|
||||||
|
when: scsi_adapters.matched > 0
|
||||||
|
|||||||
Reference in New Issue
Block a user