Add proxy support to CRI-O service (#4607)

* Add proxy support to CRI-O service

The crio.service requires proxy environment variables when it's
deployed behind a corporated network. This change creates a systemd
configuration file when the proxy variables are defined.

* Remove unnecesary crio's tasks
This commit is contained in:
Victor Morales
2020-04-21 04:12:55 -07:00
committed by GitHub
parent 03c8d0113c
commit 2bec26dba5
7 changed files with 26 additions and 13 deletions

View File

@@ -0,0 +1,15 @@
---
- name: restart crio
command: /bin/true
notify:
- CRI-O | reload systemd
- CRI-O | reload crio
- name: CRI-O | reload systemd
systemd:
daemon_reload: true
- name: CRI-O | reload crio
service:
name: crio
state: restarted