---
# Copyright (c) 2016 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

  - include_vars: "{{ ansible_os_family.split(' ') | first }}.yml"

  - name: Create CIAO user
    user:
      name: ciao
      comment: CIAO user
      createhome: no
      system: yes

  - name: Create directories required by ciao
    file: path={{ item }} state=directory owner=ciao group=ciao
    with_items:
      - /var/lib/ciao
      - /var/lib/ciao/instances
      - /var/lib/ciao/datastore
      - /var/lib/ciao/images
      - /etc/pki
      - /etc/pki/ciao
      - /etc/pki/keystone

  - name: Create directories required by root
    file: path=/etc/systemd/system state=directory owner=root group=root
    with_items:
      - /etc/systemd
      - /etc/systemd/system
      - /usr/local
      - /usr/local/bin

  - include: ceph.yml
    when: not skip_ceph

---
# Copyright (c) 2016 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

  - include_vars: "{{ ansible_os_family.split(' ') | first }}.yml"

  - name: Create CIAO user
    user:
      name: ciao
      comment: CIAO user
      createhome: no
      system: yes

  - name: Create directories required by ciao
    file: path={{ item }} state=directory owner=ciao group=ciao
    with_items:
      - /var/lib/ciao
      - /var/lib/ciao/instances
      - /var/lib/ciao/datastore
      - /var/lib/ciao/images
      - /etc/pki
      - /etc/pki/ciao
      - /etc/pki/keystone

  - name: Create directories required by root
    file: path={{ item }} state=directory owner=root group=root
    with_items:
      - /etc/systemd
      - /etc/systemd/system
      - /usr/local
      - /usr/local/bin

  - include: ceph.yml
    when: not skip_ceph

Fix bug introduced at 27cdcb9
ansible: Fix bug introduced at 27cdcb9

Use {{ item }} as an argument to a task with
`with_items` clause

Signed-off-by: Alberto Murillo Silva <3e496b67a60a13551c6a151e0a6a52025fbd95e6@intel.com>
