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 <dsavinea@redhat.com>
(cherry picked from commit b23c05ae52)
pull/3711/head
Dimitri Savineau 2019-03-08 15:15:39 -05:00 committed by Guillaume Abrioux
parent 2f3206abeb
commit ef9525482b
1 changed files with 1 additions and 0 deletions

View File

@ -20,6 +20,7 @@
- osds
gather_facts: False
become: true
vars:
delegate_facts_host: True