]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
Refact code using `set_fact` 512/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Tue, 2 Feb 2016 14:10:24 +0000 (15:10 +0100)
committerGuits <guillaume@abrioux.info>
Fri, 5 Feb 2016 15:14:01 +0000 (16:14 +0100)
commitdcec63adc865df4eb1ad17553a5443a9050d4585
tree4380e966b2ce42ee755f2b27f178122ee62a62e6
parent456e937d1eb720f8d51019f639cf08e04a60f860
Refact code using `set_fact`

At the moment, all the tasks using the file module are duplicated to have differents ownerships depending on the fact `is_ceph_infernalis`.
The goal of this commit is to have a new logic for this:
- First set facts depending on the `is_ceph_infernalis` fact
- Create the files or directories using the setted facts as ownerships.
roles/ceph-common/tasks/main.yml
roles/ceph-mds/tasks/pre_requisite.yml
roles/ceph-mon/tasks/deploy_monitors.yml
roles/ceph-mon/tasks/start_monitor.yml
roles/ceph-osd/tasks/main.yml
roles/ceph-osd/tasks/scenarios/osd_directory.yml
roles/ceph-restapi/tasks/pre_requisite.yml
roles/ceph-rgw/tasks/pre_requisite.yml