File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed
Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 7070 name : " nomad{{ '=' if ansible_pkg_mgr == 'apt' else '-' }}{{ nomad_version }}"
7171 state : present
7272 become : true
73+
74+ - name : Remove default configuration on first install
75+ file :
76+ dest : " {{ nomad_config_dir }}/nomad.hcl"
77+ state : absent
78+ when : " 'nomad' not in ansible_facts.packages"
79+ become : true
80+ notify :
81+ - restart nomad
Original file line number Diff line number Diff line change 9090 include_tasks : tls.yml
9191 when : nomad_tls_enable | bool
9292
93+ - name : Remove default configuration
94+ file :
95+ dest : " {{ nomad_config_dir }}/nomad.hcl"
96+ state : absent
97+ when :
98+ - nomad_allow_purge_config | bool
99+ - nomad_install_from_repo | bool
100+ notify :
101+ - restart nomad
102+
93103- name : Server configuration
94104 template :
95105 src : server.hcl.j2
146156 notify :
147157 - restart nomad
148158
149- - name : Remove custome configuration
159+ - name : Remove custom configuration
150160 file :
151161 dest : " {{ nomad_config_dir }}/custom.json"
152162 state : absent
You can’t perform that action at this time.
0 commit comments