Skip to content
This repository has been archived by the owner on Jan 8, 2023. It is now read-only.

Add podman network options to support use of static IP addresses #33

Prev Previous commit
Next Next commit
Add support for podman --ip option
laurent-indermuehle committed Mar 5, 2021
commit bb8877dafddf13c40c6a812f446bb71b6b8c4329
1 change: 1 addition & 0 deletions lib/molecule_podman/playbooks/create.yml
Original file line number Diff line number Diff line change
@@ -123,6 +123,7 @@
{% if item.restart_policy is defined %}--restart={{ item.restart_policy }}{% if item.restart_retries is defined %}:{{ item.restart_retries }}{% endif %}{% endif %}
{% if item.tty is defined %}--tty={{ item.tty }}{% endif %}
{% if item.network is defined %}--network={{ item.network }}{% endif %}
{% if item.ip is defined %}--ip={{ item.ip }}{% endif %}
{% if item.etc_hosts is defined %}{% for i,k in item.etc_hosts.items() %}{% if i != item.name %}--add-host {{ i }}:{{ k }} {% endif %}{% endfor %}{% endif %}
{% if item.hostname is defined %}--hostname={{ item.hostname }}{% elif item.name is defined %}--hostname={{ item.name }}{% endif %}
{% if item.cgroup_manager is defined %}--cgroup-manager={{ item.cgroup_manager }}{% endif %}