mirror of
https://github.com/k3s-io/k3s-ansible.git
synced 2025-12-05 09:34:19 +01:00
Improve capture regex for k3s-agent service replacement (#470)
Signed-off-by: Derek Nola <derek.nola@suse.com>
This commit is contained in:
parent
11e99b0b7f
commit
6737051311
@ -87,7 +87,7 @@
|
||||
register: k3s_agent_service
|
||||
ansible.builtin.replace:
|
||||
path: "{{ systemd_dir }}/k3s-agent.service"
|
||||
regexp: '^ExecStart=\/usr\/local\/bin\/k3s \\\n\s*agent.*'
|
||||
regexp: '^ExecStart=\/usr\/local\/bin\/k3s \\\n\s*agent.*(?:\n(?:[\t\s].*|$))*'
|
||||
replace: |
|
||||
ExecStart=/usr/local/bin/k3s \
|
||||
agent \
|
||||
|
||||
Loading…
Reference in New Issue
Block a user