From: Dimitri Savineau Date: Fri, 8 Mar 2019 20:15:39 +0000 (-0500) Subject: add-osd.yml: Add become flag for ceph-validate X-Git-Tag: v3.2.10~10 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ef9525482b61f9c7b2d2829bc443ad704020210f;p=ceph-ansible.git add-osd.yml: Add become flag for ceph-validate 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 (cherry picked from commit b23c05ae5200255fb8452c26834de1e9db1497cc) --- diff --git a/infrastructure-playbooks/add-osd.yml b/infrastructure-playbooks/add-osd.yml index 3a9056710..c2b3137fd 100644 --- a/infrastructure-playbooks/add-osd.yml +++ b/infrastructure-playbooks/add-osd.yml @@ -20,6 +20,7 @@ - osds gather_facts: False + become: true vars: delegate_facts_host: True