Skip to content

Commit b30ab7f

Browse files
committed
Add localhost to image-build inventory
1 parent 2a7d4ce commit b30ab7f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

roles/image_build/tasks/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@
3636
copy:
3737
dest: "{{ image_build_inventory.path }}/hosts"
3838
content: |
39+
{% raw %}
40+
localhost ansible_connection=local ansible_python_interpreter="{{ ansible_playbook_python }}"
41+
{% endraw %}
3942
[builder:vars]
4043
{% if image_build_ssh_bastion_host is defined %}
4144
ansible_ssh_common_args={{ image_build_ansible_ssh_common_args }}

0 commit comments

Comments
 (0)