Bug 38935 - Не работает модуль parted
Summary: Не работает модуль parted
Status: ASSIGNED
Alias: None
Product: Sisyphus
Classification: Development
Component: ansible (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Andrey Cherepanov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-14 16:57 MSK by Alexander Makeenkov
Modified: 2020-09-15 15:23 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Makeenkov 2020-09-14 16:57:53 MSK
Запуск плейбука с использованием модуля parted завершается ошибкой:

fatal: [localhost]: FAILED! => {
    "changed": false,
    "invocation": {
        "module_args": {
            "align": "optimal",
            "device": "/dev/sdb",
            "flags": null,
            "label": "msdos",
            "name": null,
            "number": 1,
            "part_end": "100%",
            "part_start": "0%",
            "part_type": "primary",
            "state": "present",
            "unit": "KiB"
        }
    },
    "msg": "Failed to get parted version.",
    "out": "parted (GNU parted) 3.2.46-e4ae\nCopyright (C) 2014 Free Software Foundation, Inc.\nLicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.\n\nWritten by <http://git.debian.org/?p=parted/parted.git;a=blob_plain;f=AUTHORS>.\n",
    "rc": 0
}

Таск:

- name: Create partition on disk /dev/sdb
  parted:
    device: /dev/sdb
    number: 1
    state: present

Версия пакета: ansible-2.9.10-alt1