Compare commits

...
Sign in to create a new pull request.

3 commits

Author SHA1 Message Date
Jakob Lechner
bf1995b532
attempt to create ansible temp dir 2022-07-07 20:22:56 +00:00
Jakob Lechner
522d95694b
Increase ansible verbosity 2022-07-07 19:57:26 +00:00
Jakob Lechner
4c630b5860
Fix ansible provisioner
See:
 - https://github.com/ansible/ansible/issues/74072
 - https://github.com/hashicorp/packer/issues/6379
2022-07-07 19:36:12 +00:00

View file

@ -63,13 +63,15 @@ provisioners:
type: shell
- inline:
- apt-get -y install openssh-server python lsb-release
- mkdir -p /root/.ansible/tmp
type: shell
- playbook_file: ansible/playbook.yml
type: ansible
user: root
user: "{{user `ssh_user`}}"
ansible_env_vars:
- "ANSIBLE_SSH_ARGS='-o HostkeyAlgorithms=+ssh-rsa -o PubkeyAcceptedAlgorithms=+ssh-rsa'"
- "ANSIBLE_PYTHON_INTERPRETER=/usr/bin/python3"
- "ANSIBLE_VERBOSITY=4"
- inline:
- rm /boot && mkdir /boot
type: shell