1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

'backup: yes' prior to copying mariadb.service from /lib/systemd/system/ to /etc/systemd/system/

This commit is contained in:
A Holt 2019-07-03 13:18:03 -04:00 committed by GitHub
parent 51ace42a1c
commit 32beda22d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -72,6 +72,7 @@
- name: Copy pkg's /lib/systemd/system/mariadb.service to /etc/systemd/system/ to be customized - name: Copy pkg's /lib/systemd/system/mariadb.service to /etc/systemd/system/ to be customized
copy: copy:
force: yes force: yes
backup: yes
src: /lib/systemd/system/mariadb.service src: /lib/systemd/system/mariadb.service
dest: /etc/systemd/system/ dest: /etc/systemd/system/
when: mariadb_unit_file.stat.exists when: mariadb_unit_file.stat.exists
@ -94,7 +95,6 @@
- name: Set systemd boot timeout to 180 seconds for slow machines, in /etc/systemd/system/mariadb.service - name: Set systemd boot timeout to 180 seconds for slow machines, in /etc/systemd/system/mariadb.service
lineinfile: lineinfile:
backup: yes
path: /etc/systemd/system/mariadb.service path: /etc/systemd/system/mariadb.service
insertafter: '^\[Service\]$' insertafter: '^\[Service\]$'
regexp: '^TimeoutStartSec=' regexp: '^TimeoutStartSec='