Ensure that /usr/lib/systemd/system exists.
This commit is contained in:
parent
6904b50e1d
commit
0b139e457b
|
@ -121,10 +121,13 @@
|
||||||
- ansible_distribution_version is version_compare('24.04', '<')
|
- ansible_distribution_version is version_compare('24.04', '<')
|
||||||
tags: ['tomcat', 'tomcat_serverxml', 'tomcat_conf', 'tomcat_init']
|
tags: ['tomcat', 'tomcat_serverxml', 'tomcat_conf', 'tomcat_init']
|
||||||
|
|
||||||
- name: tomcat-pkgs | Reload the systemd daemon if we are running on a systemd-backed server
|
- name: tomcat-pkgs | Ensure that /usr/lib/systemd/system exists
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.file:
|
||||||
daemon-reload: true
|
path: /usr/lib/systemd/system
|
||||||
when: reload_systemd
|
state: directory
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: "0755"
|
||||||
tags: ['tomcat', 'tomcat_instances', 'tomcat_init']
|
tags: ['tomcat', 'tomcat_instances', 'tomcat_init']
|
||||||
|
|
||||||
- name: tomcat-pkgs | Install the systemd unit
|
- name: tomcat-pkgs | Install the systemd unit
|
||||||
|
@ -135,11 +138,18 @@
|
||||||
group: root
|
group: root
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
notify: tomcat restart
|
notify: tomcat restart
|
||||||
|
register: reload_systemd
|
||||||
when:
|
when:
|
||||||
- tomcat_use_systemd_unit
|
- tomcat_use_systemd_unit
|
||||||
- ansible_distribution_version is version_compare('24.04', '<')
|
- ansible_distribution_version is version_compare('24.04', '<')
|
||||||
tags: ['tomcat', 'tomcat_serverxml', 'tomcat_conf']
|
tags: ['tomcat', 'tomcat_serverxml', 'tomcat_conf']
|
||||||
|
|
||||||
|
- name: tomcat-pkgs | Reload the systemd daemon if we are running on a systemd-backed server
|
||||||
|
ansible.builtin.systemd:
|
||||||
|
daemon-reload: true
|
||||||
|
when: reload_systemd
|
||||||
|
tags: ['tomcat', 'tomcat_instances', 'tomcat_init']
|
||||||
|
|
||||||
- name: tomcat-pkgs | Install a slightly modified catalina.properties
|
- name: tomcat-pkgs | Install a slightly modified catalina.properties
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: catalina.properties.j2
|
src: catalina.properties.j2
|
||||||
|
|
Loading…
Reference in New Issue