ceph-ansible: ceph-ansible + Fresh deployment problem : config_template is missing interpreter line

Hi, I am trying to deploy a new cluster with ceph-ansible with stable-4.0 Everything is working great until I reach the task : TASK [ceph-config : generate ceph configuration file: ceph.conf] It returns this error : fatal: [mon_host01]: FAILED! => {"msg": "module (config_template) is missing interpreter line"}

I’m running ansible v 2.8.1 in a virtualenv with only ansible and the requirements. I am executing my playing from the ceph-ansible directory, where ./library can be found.

(ceph_ansible2) root@myworkstation:/workdir/ansible/ansible_ceph/ceph-ansible# ls -d */ actions_plugins/ callback_plugins/ contrib/ docs/ fetch/ filter_plugins/ group_vars/ host_vars/ infrastructure-playbooks/ library/ plugins/ profiles/ roles/ tests/

`(ceph_ansible2) root@myworkstation:/workdir/ansible/ansible_ceph/ceph-ansible# ls -al ./library/

ceph_add_users_buckets.py / ceph_crush.py / ceph_facts ceph_key.py / ceph_volume.py / config_template igw_client.py / igw_gateway.py / igw_lun.py / igw_purge.py / _init__.py / validate

Following this documentation : https://docs.ansible.com/ansible/latest/dev_guide/developing_locally.html#adding-a-plugin-locally I still don’t understand why it can’t find the module properly.

Regards,

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 26 (8 by maintainers)

Most upvoted comments

Dear HammerZ3it please update you /etc/anisble/ansible.cfg file accordingly i am using stack user to deply ceph-4.0 on ubuntu 18.04

action_plugins = /home/stack/ceph-ansible/plugins/actions/

I’d bet your issue is:

 [WARNING] Ansible is being run in a world writable directory (/mnt/c/Users/cuzaf/Documents/ansible/ansible_ceph/ceph-ansible), ignoring it as an ansible.cfg source. For more information see https://docs.ansible.com/ansible/devel/reference_appendices/config.html#cfg-in-world-writable-dir

My bad for answering that late : My command use to run playbook : ansible-playbook -i inventory site.yml --user infra -K I’ll try to post a solution if I find it one as soon as I have time to get back on it.

Regards,

I had the same issue. The issue was cuz I run ansible like ansible-playbook -i ceph-ansible/hosts ceph-ansible/site.yml -u ans-mgm. Don’t know why but after I change it to cd ceph-ansible && ansible-playbook -u ans-mgm site.yml -i hosts deploy was successful

I’d bet your issue is:

 [WARNING] Ansible is being run in a world writable directory (/mnt/c/Users/cuzaf/Documents/ansible/ansible_ceph/ceph-ansible), ignoring it as an ansible.cfg source. For more information see https://docs.ansible.com/ansible/devel/reference_appendices/config.html#cfg-in-world-writable-dir

Nice lead. that was the case in my issue