tags:
- nomad-conf-user
+- name: Inst - Clean Nomad
+ file:
+ path: "{{ nomad_inst_dir }}/nomad"
+ state: "absent"
+ tags:
+ - nomad-inst-package
+
- name: Inst - Download Nomad
get_url:
url: "{{ nomad_zip_url }}"
tags:
- nomad-inst-package
-- name: Inst - Cleanup
- file:
- path: "{{ nomad_inst_dir }}/nomad"
- state: "absent"
- tags:
- - nomad-inst-package
-
- name: Conf - Create Directories "{{ nomad_data_dir }}"
file:
dest: "{{ nomad_data_dir }}"
tags:
- nomad-conf
+- name: Conf - TLS Configuration
+ template:
+ src: tls.hcl.j2
+ dest: "{{ nomad_config_dir }}/tls.hcl"
+ owner: "{{ nomad_user }}"
+ group: "{{ nomad_group }}"
+ mode: 0644
+ tags:
+ - nomad-conf
+
+- name: Conf - Telemetry Configuration
+ template:
+ src: telemetry.hcl.j2
+ dest: "{{ nomad_config_dir }}/telemetry.hcl"
+ owner: "{{ nomad_user }}"
+ group: "{{ nomad_group }}"
+ mode: 0644
+ tags:
+ - nomad-conf
+
- name: Conf - Custom Configuration
template:
src: custom.json.j2
owner: "root"
group: "root"
mode: 0644
- notify:
- - "Restart Nomad"
+# notify:
+# - "Restart Nomad"
tags:
- nomad-conf