-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bring ansible-lint to level: production
- Loading branch information
1 parent
d1d0860
commit 3af943e
Showing
7 changed files
with
50 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
--- | ||
- name: daemon_reload | ||
service: | ||
- name: Daemon_reload | ||
ansible.builtin.service: | ||
name: "{{ ss14_name }}.service" | ||
daemon_reload: true | ||
|
||
- name: restart_ss14 | ||
service: | ||
- name: Restart_ss14 | ||
ansible.builtin.service: | ||
name: "{{ ss14_name }}.service" | ||
state: restarted | ||
|
||
- name: start_ss14 | ||
service: | ||
- name: Start_ss14 | ||
ansible.builtin.service: | ||
name: "{{ ss14_name }}.service" | ||
state: started | ||
enabled: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
--- | ||
- name: Make ss14 config | ||
template: | ||
ansible.builtin.template: | ||
src: templates/server_config.toml | ||
dest: "{{ deploy_helper.shared_path }}/server" | ||
owner: "{{ ss14_unix_user }}" | ||
group: "{{ ss14_unix_group }}" | ||
mode: 744 | ||
mode: "0744" | ||
notify: | ||
- start_ss14 | ||
- restart_ss14 | ||
- Start_ss14 | ||
- Restart_ss14 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,29 @@ | ||
--- | ||
- name: Make temp apt key dir | ||
file: | ||
ansible.builtin.file: | ||
state: directory | ||
path: /tmp/apt_key | ||
path: "/tmp/apt_key" | ||
owner: root | ||
group: root | ||
mode: "0700" | ||
|
||
- name: Apt key | ||
get_url: | ||
ansible.builtin.get_url: | ||
url: "https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb" | ||
dest: "/tmp/apt_key/packages-microsoft-prod.deb" | ||
owner: root | ||
group: root | ||
mode: "0700" | ||
changed_when: false | ||
|
||
- name: Run apt key | ||
command: "dpkg -i packages-microsoft-prod.deb" | ||
ansible.builtin.command: "dpkg -i packages-microsoft-prod.deb" | ||
args: | ||
chdir: "/tmp/apt_key" | ||
changed_when: false | ||
|
||
- name: Install dotnet runtime | ||
apt: | ||
ansible.builtin.apt: | ||
pkg: "dotnet-runtime-8.0" | ||
update_cache: true | ||
notify: restart_ss14 | ||
notify: Restart_ss14 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
--- | ||
- name: Prepare host | ||
include_tasks: prepare_host.yml | ||
ansible.builtin.include_tasks: prepare_host.yml | ||
|
||
- name: Check if dotnet is installed | ||
apt: | ||
ansible.builtin.apt: | ||
pkg: "dotnet-runtime-8.0" | ||
register: dotnet_installed | ||
failed_when: false | ||
|
||
- name: Install dotnet runtime | ||
include_tasks: dotnet.yml | ||
ansible.builtin.include_tasks: dotnet.yml | ||
when: ( not ( ss14_skip_install_dotnet | bool )) and ( dotnet_installed.failed | bool ) | ||
|
||
- name: Install Spacestation 14 | ||
include_tasks: install.yml | ||
ansible.builtin.include_tasks: install.yml | ||
|
||
- name: Configure ss14 | ||
include_tasks: configure.yml | ||
ansible.builtin.include_tasks: configure.yml | ||
|
||
- name: Make systemd unit | ||
include_tasks: systemd.yml | ||
ansible.builtin.include_tasks: systemd.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
--- | ||
- name: Template systemd unit | ||
template: | ||
ansible.builtin.template: | ||
src: "templates/ss14.service" | ||
dest: "/etc/systemd/system/{{ ss14_name }}.service" | ||
owner: root | ||
group: root | ||
mode: 700 | ||
mode: "0700" | ||
notify: | ||
- daemon_reload | ||
- restart_ss14 | ||
- Daemon_reload | ||
- Restart_ss14 |