
Docker commands are replaced with podman. References to docker resources is fixed. Some improvements to avoid storing container ids and performing operations is also done in this patch. Change-Id: I2b9661d06b30eeb7752bdb4fad73778d2ed940d7
20 lines
551 B
YAML
20 lines
551 B
YAML
---
|
|
|
|
- hosts: overcloud-controllers
|
|
tasks:
|
|
- name: Update dhcp_agent configuration file option 'dhcp_renewal_time'
|
|
ini_file:
|
|
path=/var/lib/config-data/puppet-generated/neutron/etc/neutron/dhcp_agent.ini
|
|
section=DEFAULT
|
|
backup=yes
|
|
option=dhcp_renewal_time
|
|
value={{ renewal_time }}
|
|
create=no
|
|
ignore_errors: yes
|
|
|
|
- block:
|
|
- name: Restart neutron dhcp agent
|
|
shell:
|
|
podman restart $(podman ps --filter "name=neutron_dhcp" --format {% raw %}"{{.ID}}"{% endraw %})
|
|
ignore_errors: yes
|