]> 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)
committerGuillaume Abrioux <gabrioux@redhat.com>
Tue, 12 Mar 2019 13:48:03 +0000 (14:48 +0100)
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>
(cherry picked from commit b23c05ae5200255fb8452c26834de1e9db1497cc)

infrastructure-playbooks/add-osd.yml

index 3a905671077af9e0f1c2561e6cb991d8b17719ac..c2b3137fd9958b0880448c89c111730a111ae065 100644 (file)
@@ -20,6 +20,7 @@
   - osds
 
   gather_facts: False
+  become: true
 
   vars:
     delegate_facts_host: True