]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
add-osd.yml: Add become flag for ceph-validate
authorDimitri Savineau <dsavinea@redhat.com>
Fri, 8 Mar 2019 20:15:39 +0000 (15:15 -0500)
committermergify[bot] <mergify[bot]@users.noreply.github.com>
Sat, 9 Mar 2019 05:54:46 +0000 (05:54 +0000)
The check_devices task fails if the ceph-validate role isn't executed
as a privileged user (Permission denied).

failed: [osd0] (item=/dev/sdb) => {"changed": false, "err": "Error:
Error opening /dev/sdb: Permission denied\n", "item": "/dev/sdb",
"msg": "Error while getting device information with parted script:
'/sbin/parted -s -m /dev/sdb -- unit 'MiB' print'", "out": "", "rc": 1}

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
infrastructure-playbooks/add-osd.yml

index 467c0358a64de4a43aadabcb9df49a837cd433a9..1c2d3e27d4eba628ad3d2432a9893ab9fa13703d 100644 (file)
@@ -20,6 +20,7 @@
   - osds
 
   gather_facts: False
+  become: true
 
   vars:
     delegate_facts_host: True