Skip to content

Commit

Permalink
relocate ansible ssh_extra_args
Browse files Browse the repository at this point in the history
  • Loading branch information
rodolpheche committed Oct 3, 2023
1 parent fbbe8cf commit d2e07a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
2 changes: 1 addition & 1 deletion ansible.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ host_key_checking = False

[ssh_connection]
pipelining = True
ssh_extra_args = "-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null"
ssh_args = "-o UserKnownHostsFile=/dev/null"
16 changes: 3 additions & 13 deletions config.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ locals {
firmware = "/usr/share/edk2-ovmf/x64/OVMF.fd"
iso_url = "https://mir.archlinux.fr/iso/latest/archlinux-x86_64.iso"
iso_checksum = "${split(" ", split("\n", data.http.example.body)[1])[0] }"
headless = false
headless = true
crypt_passphrase = "password"
ssh_root_username = "root"
ssh_root_password = "root"
Expand Down Expand Up @@ -89,13 +89,8 @@ build {
"ANSIBLE_DISPLAY_OK_HOSTS=1",
"ANSIBLE_DISPLAY_SKIPPED_HOSTS=1"
]
ansible_ssh_extra_args = [
"-o IdentitiesOnly=yes",
"-o StrictHostKeyChecking=no",
"-o UserKnownHostsFile=/dev/null"
]
extra_arguments = [
#"-vvv",
// "-vvv",
"-D",
"-e ansible_host=localhost",
"-e ansible_port=${build.Port}",
Expand Down Expand Up @@ -124,13 +119,8 @@ build {
"ANSIBLE_DISPLAY_OK_HOSTS=1",
"ANSIBLE_DISPLAY_SKIPPED_HOSTS=1"
]
ansible_ssh_extra_args = [
"-o IdentitiesOnly=yes",
"-o StrictHostKeyChecking=no",
"-o UserKnownHostsFile=/dev/null"
]
extra_arguments = [
#"-vvv",
// "-vvv",
"-D",
"-e ansible_host=localhost",
"-e ansible_port=${build.Port}",
Expand Down

0 comments on commit d2e07a4

Please sign in to comment.