We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0bed43e commit 76dd473Copy full SHA for 76dd473
1 file changed
scripts/ansible/roles/podman/tasks/main.yml
@@ -158,6 +158,16 @@
158
group: "{{ podman_user }}"
159
mode: '0644'
160
161
+- name: Ensure Podman uses iptables firewall on WSL
162
+ become: true
163
+ become_user: "{{ podman_user }}"
164
+ ini_file:
165
+ path: "{{ podman_user_home }}/.config/containers/containers.conf"
166
+ section: network
167
+ option: firewall_driver
168
+ value: '"iptables"'
169
+ when: ansible_virtualization_type == "wsl"
170
+
171
- name: Verify Podman installation
172
command: podman --version
173
register: podman_verify
0 commit comments