mirror of https://github.com/ceph/ceph-ansible.git
Merge pull request #1808 from ceph/role-path
ceph-mon: detect ANSIBLE_ROLES_PATH if presentpull/1810/head
commit
aee8267be4
|
@ -43,10 +43,10 @@
|
|||
- "{{ inventory_hostname == groups[mon_group_name] | last }}"
|
||||
- not containerized_deployment_with_kv
|
||||
|
||||
- include: "{{ playbook_dir }}/roles/ceph-mon/tasks/set_osd_pool_default_pg_num.yml"
|
||||
- include: "{{ lookup('env', 'ANSIBLE_ROLES_PATH') | default (playbook_dir + '/roles', true) }}/ceph-mon/tasks/set_osd_pool_default_pg_num.yml"
|
||||
|
||||
# create openstack pools only when all mons are up.
|
||||
- include: "{{ playbook_dir }}/roles/ceph-mon/tasks/openstack_config.yml"
|
||||
- include: "{{ lookup('env', 'ANSIBLE_ROLES_PATH') | default (playbook_dir + '/roles', true) }}/ceph-mon/tasks/openstack_config.yml"
|
||||
when:
|
||||
- openstack_config
|
||||
- "{{ inventory_hostname == groups[mon_group_name] | last }}"
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
- name: generate ganesha configuration file
|
||||
action: config_template
|
||||
args:
|
||||
src: "{{ playbook_dir }}/roles/ceph-common/templates/ganesha.conf.j2"
|
||||
src: "{{ lookup('env', 'ANSIBLE_ROLES_PATH') | default (playbook_dir + '/roles', true) }}/ceph-common/templates/ganesha.conf.j2"
|
||||
dest: /etc/ganesha/ganesha.conf
|
||||
owner: "root"
|
||||
group: "root"
|
||||
|
|
Loading…
Reference in New Issue