-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get rid of separate role which is unusable with the current structure
- Loading branch information
Showing
17 changed files
with
70 additions
and
330 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
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,2 +1,11 @@ | ||
--- | ||
# handlers file for audit_storage | ||
- name: Reload systemd | ||
ansible.builtin.systemd: | ||
daemon_reload: true | ||
|
||
- name: Restart {{ audit_storage_systemd_service_unit_name }} | ||
ansible.builtin.systemd: | ||
name: "{{ audit_storage_systemd_service_unit_name }}" | ||
state: restarted | ||
when: audit_storage_systemd_service_state == 'started' |
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
[Unit] | ||
Description={{ audit_storage_systemd_service_unit_description }} | ||
After={{ audit_storage_systemd_service_unit_after }} | ||
|
||
[Service] | ||
Type={{ audit_storage_systemd_service_type }} | ||
{% if audit_storage_systemd_service_type == 'oneshot' %} | ||
RemainAfterExit=yes | ||
{% endif %} | ||
|
||
User={{ audit_storage_systemd_service_user }} | ||
|
||
{% for key, value in audit_storage_systemd_service_environment.items() %} | ||
Environment="{{ key }}={{ value | replace('%', '%%') }}" | ||
{% endfor %} | ||
|
||
ExecStart={{ audit_storage_systemd_service_exec_start }} | ||
ExecStop={{ audit_storage_systemd_service_exec_stop }} | ||
|
||
Restart=on-failure | ||
RestartSec=60 | ||
SuccessExitStatus=143 | ||
|
||
WorkingDirectory={{ audit_storage_systemd_service_working_directory }} | ||
|
||
{% for key, value in audit_storage_systemd_service_additional_options.items() %} | ||
{{ key }}={{ value }} | ||
{% endfor %} | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
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,3 +1,6 @@ | ||
--- | ||
# vars file for audit_storage | ||
audit_storage_artifact_path: "{{ audit_storage_binaries_dir }}/{{ audit_storage_artifact_name }}-{{ audit_storage_version }}.jar" | ||
audit_storage_systemd_service_environment: >- | ||
{{ audit_storage_default_environment | | ||
combine(audit_storage_environment) }} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.