From: AndrewLiu <[email protected]>
Recently, we find this feature of ansible:
http://docs.ansible.com/ansible/playbooks_loops.html#finding-first-matched-files
A specific path of template file can be add in the ansible task.
If a user want to customize an non-ini template file, the user can copy the template file to the customization directory, and modify the template file as the user wants.
An example of how to modify the ansible task:
change from:
- name: Copying over horizon.conf
template:
src: "{{ item }}.conf.j2"
dest: "{{ node_config_directory }}/{{ item }}/{{ item }}.conf"
with_items:
- "horizon"
to:
- name: Copying over horizon.conf template: src: "{{ item }}" dest: "{{ node_config_directory }}/horizon/horizon.conf" with_first_found: - "{{ node_custom_config }}/horizon.conf.j2" - "horizon.conf.j2"But a convention of how to organize the directory structure of customization template files should be addressed.
__________________________________________________________________________ OpenStack Development Mailing List (not for usage questions) Unsubscribe: [email protected]?subject:unsubscribe http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
