mqtt/application: Added linking of configuration directory to environment

dehydrated
Felix Stupp 5 years ago
parent 18832f4eb0
commit 69dfba9911
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -5,6 +5,7 @@ configuration_file: "{{ configuration_directory }}/conf.d/0_ansible_main.conf"
environment_directory: "{{ global_configuration_environment_directory }}/mosquitto" environment_directory: "{{ global_configuration_environment_directory }}/mosquitto"
environment_link_name: "conf" environment_link_name: "conf"
environment_link: "{{ environment_directory }}/{{ environment_link_name }}"
acl_file_name: "acl" acl_file_name: "acl"
acl_file: "{{ configuration_directory }}/{{ acl_file_name }}" acl_file: "{{ configuration_directory }}/{{ acl_file_name }}"

@ -22,6 +22,12 @@
group: root group: root
mode: "u=rw,g=r,o=r" mode: "u=rw,g=r,o=r"
- name: Create link in environment directory
file:
state: link
src: "{{ configuration_directory }}"
dest: "{{ environment_link }}"
- name: Store acl main file - name: Store acl main file
template: template:
src: main.acl src: main.acl

Loading…
Cancel
Save