---
- name: create ceph conf directory
  file:
      path: /etc/ceph
      state: directory
      owner: root
      group: root
      mode: 0644

- name: generate ceph configuration file
  config_template:
    src: "{{ playbook_dir }}/roles/ceph-common/templates/ceph.conf.j2"
    dest: /etc/ceph/ceph.conf
    owner: "root"
    group: "root"
    mode: "0644"
    config_overrides: "{{ ceph_conf_overrides }}"
    config_type: ini

---
- name: create ceph conf directory
  file:
      path: /etc/ceph
      state: directory
      owner: root
      group: root
      mode: 0644

- name: generate ceph configuration file
  action: config_template
  args:
    src: "{{ playbook_dir }}/roles/ceph-common/templates/ceph.conf.j2"
    dest: /etc/ceph/ceph.conf
    owner: "root"
    group: "root"
    mode: "0644"
    config_overrides: "{{ ceph_conf_overrides }}"
    config_type: ini

Fix mis-use of config_template in docker tasks
Fix mis-use of config_template in docker tasks

As written, generating the config file for ceph-mon in Docker yielded:

ERROR: config_template is not a legal parameter in an Ansible task or
handler

This fixes that error condition.
