Skip to content

Instantly share code, notes, and snippets.

@EugenMayer
Created November 2, 2021 17:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EugenMayer/d74ffdc0b15db9c9c1af344bd27accd1 to your computer and use it in GitHub Desktop.
Save EugenMayer/d74ffdc0b15db9c9c1af344bd27accd1 to your computer and use it in GitHub Desktop.
- name: Copying over nova.conf
become: true
vars:
service_name: "{{ item.key }}"
merge_configs:
sources:
- "{{ role_path }}/templates/nova.conf.j2"
- "{{ node_custom_config }}/global.conf"
- "{{ node_custom_config }}/nova.conf"
- "{{ node_custom_config }}/nova/{{ item.key }}.conf"
- "{{ node_custom_config }}/nova/{{ inventory_hostname }}/nova.conf"
dest: "{{ node_config_directory }}/{{ item.key }}/nova.conf"
mode: "0660"
when:
- inventory_hostname in groups[item.value.group]
- item.value.enabled | bool
with_dict: "{{ nova_services }}"
notify:
- "Restart {{ item.key }} container"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment