Description of problem: Version-Release number of selected component (if applicable): How reproducible: ================= always Steps to Reproduce: ================== 1. Install the ceph-ansible-1.0.5-27.el7scon version of ceph-ansible ceph-ansible files should be installed at /usr/share/ceph-ansible 2. Copy the sample `group_vars/all.sample`` to ``group_vars/all`` `cp /usr/share/ceph-ansible/group_vars/all.sample /usr/share/ceph-ansible/group_vars/all` 3. Set `generate_fsid: false` in `group_vars/all` 4. Get your current cluster fsid with `ceph fsid` and set `fsid` accordingly in `group_vars/all` Modify the ansible inventory at /etc/ansible/hosts to include your ceph hosts. 5. Add monitors under a [mons] section, and OSDs under an [osds] section to identify their roles to Ansible. The default names for these groups are defined in the `group_vars/all` file. As a reference, refer to step 3 here: https://access.qa.redhat.com/documentation/en/red-hat-ceph-storage/2/installation-guide-for-red-hat-enterprise-linux/#installing_ceph_ansible 6. passwordless ssh from ansible node to all node 7. From the `/usr/share/ceph-ansible` directory run the playbook like so: `ansible-playbook take-over-existing-cluster.yml` Actual results: ================ [root@magna044 ceph-ansible]# ansible-playbook take-over-existing-cluster.yml ERROR: Syntax Error while loading YAML script, take-over-existing-cluster.yml Note: The error may actually appear before this position: line 35, column 16 src: "roles/ceph-common/templates/ceph.conf.j2" dest: {{ ceph_conf.stdout }} ^ We could be wrong, but this one looks like it might be an issue with missing quotes. Always quote template expression brackets when they start a value. For instance: with_items: - {{ foo }} Should be written as: with_items: - "{{ foo }}" Expected results: Additional info:
(can we make Jenkins/CI syntax-check this at least?)
*** This bug has been marked as a duplicate of bug 1356795 ***