test: set cri-o systemd restart policy to no
While in production we want cri-o to restart when it crashes, when we're testing we'd like to catch panics and crashes. Set restart policy in the systemd unit file to never restart, so we fail tests that make cri-o panic
target: install
chdir: "{{ ansible_env.GOPATH }}/src/github.com/cri-o/cri-o"
+- name: set RestartPolicy in systemd unit appropriate for tests
+ lineinfile:
+ path: "{{ ansible_env.GOPATH }}/src/github.com/cri-o/cri-o/contrib/systemd/crio.service"
+ regexp: '^Restart='
+ line: '^Restart=no'
+
- name: install cri-o systemd files
make:
target: install.systemd
