Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DEFAULT
- mdadm_arrays:
- # Define disk devices to assign to array
- devices:
- - '/dev/sdb'
- - '/dev/sdc'
- - '/dev/sdd'
- TASK
- - name: arrays | Create partition on disk(s)
- parted:
- device: "{{ item.devices }}"
- number: 1
- label: gpt
- name: pri
- state: present
- loop: '{{ mdadm_arrays }}'
- RESULT
- TASK [mdadm : arrays | Create partition on disk(s)] *******************************************************************************************************************************************************************
- [WARNING]: The value ['/dev/sdb', '/dev/sdc', '/dev/sdd'] (type list) in a string field was converted to u"['/dev/sdb', '/dev/sdc', '/dev/sdd']" (type string). If this does not look like what you expect, quote the
- entire value to ensure it does not change.
- failed: [sw-sed-ansibleVM_(PGassan)] (item={u'state': u'present', u'name': u'md0', u'level': u'1', u'opts': u'noatime', u'mountpoint': u'/mnt/md0', u'filesystem': u'ext4', u'devices': [u'/dev/sdb', u'/dev/sdc', u'/dev/sdd']}) => {"ansible_loop_var": "item", "changed": false, "err": "Error: Could not stat device [/dev/sdb, - No such file or directory.\n", "item": {"devices": ["/dev/sdb", "/dev/sdc", "/dev/sdd"], "filesystem": "ext4", "level": "1", "mountpoint": "/mnt/md0", "name": "md0", "opts": "noatime", "state": "present"}, "msg": "Error while getting device information with parted script: '/sbin/parted -s -m ['/dev/sdb', '/dev/sdc', '/dev/sdd'] -- unit 'KiB' print'", "out": "", "rc": 1}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement