Update roles (remove inactive and update for-ansible-lint)

This commit is contained in:
Tobias Reisinger 2025-11-23 23:47:52 +01:00
parent 39fd6ef5a2
commit 400b342ec4
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
5 changed files with 15 additions and 44 deletions

View file

@ -13,10 +13,10 @@
- name: Set config path
ansible.builtin.set_fact:
config_path: "{{ (service_path, 'config') | path_join }}"
factorio_config_path: "{{ (service_path, 'config') | path_join }}"
- name: Create config directory
ansible.builtin.file:
path: "{{ config_path }}"
path: "{{ factorio_config_path }}"
state: directory
mode: "0755"
owner: "{{ factorio_uid }}"
@ -24,7 +24,7 @@
become: true
- name: Create the server settings
ansible.builtin.copy:
dest: "{{ (config_path, 'server-settings.json') | path_join }}"
dest: "{{ (factorio_config_path, 'server-settings.json') | path_join }}"
content: '{{ factorio_json | to_json }}'
mode: "0644"
owner: "{{ factorio_uid }}"