19 lines
570 B
YAML
19 lines
570 B
YAML
|
---
|
||
|
# Set the content of map-gen-settings.json
|
||
|
|
||
|
- name: ({{ service_name }}) Create map-gen-settings.json file
|
||
|
copy:
|
||
|
content: "{{ factorio_map_gen_settings | to_json }}"
|
||
|
dest: "{{ service_root }}/factorio/data/map-gen-settings.json"
|
||
|
when: factorio_map_gen_settings_enabled
|
||
|
notify:
|
||
|
- Restart factorio service
|
||
|
|
||
|
- name: ({{ service_name }}) Remove map-gen-settings.json file
|
||
|
file:
|
||
|
path: "{{ service_root }}/factorio/data/map-gen-settings.json"
|
||
|
state: absent
|
||
|
when: not factorio_map_gen_settings_enabled
|
||
|
notify:
|
||
|
- Restart factorio service
|