Update fix-new-vms.yml
This commit is contained in:
@@ -1,19 +1,11 @@
|
|||||||
---
|
---
|
||||||
# Semaphore Survey vars required:
|
# Semaphore Survey vars required:
|
||||||
# vm_ip (e.g. 192.168.1.71)
|
# vm_ip (e.g. 192.168.1.22)
|
||||||
# vm_user (e.g. craig)
|
# vm_user (e.g. craig)
|
||||||
# vm_pass (password for vm_user, and sudo)
|
# vm_pass (password for vm_user, and sudo)
|
||||||
#
|
#
|
||||||
# IMPORTANT:
|
# This playbook connects using PASSWORD SSH (forced; disables key auth attempts),
|
||||||
# - This playbook can ONLY connect with a password if the VM already allows password SSH.
|
# then creates an SSHD override drop-in to enable PasswordAuthentication.
|
||||||
# If the VM has PasswordAuthentication=no (cloud-init default), you must connect via SSH KEY
|
|
||||||
# or Proxmox console first, then run this.
|
|
||||||
#
|
|
||||||
# What it does:
|
|
||||||
# - Forces PASSWORD SSH (disables key auth attempts)
|
|
||||||
# - Creates an sshd override drop-in to enable PasswordAuthentication yes
|
|
||||||
# - Validates sshd config and restarts SSH
|
|
||||||
# - Prints the effective PasswordAuthentication setting
|
|
||||||
|
|
||||||
- name: Build runtime target from Survey variables
|
- name: Build runtime target from Survey variables
|
||||||
hosts: localhost
|
hosts: localhost
|
||||||
@@ -38,7 +30,6 @@
|
|||||||
ansible_become: true
|
ansible_become: true
|
||||||
ansible_become_password: "{{ vm_pass }}"
|
ansible_become_password: "{{ vm_pass }}"
|
||||||
ansible_connection: ssh
|
ansible_connection: ssh
|
||||||
# Force-disable key auth attempts
|
|
||||||
ansible_ssh_private_key_file: ""
|
ansible_ssh_private_key_file: ""
|
||||||
ansible_ssh_common_args: >-
|
ansible_ssh_common_args: >-
|
||||||
-o PreferredAuthentications=password
|
-o PreferredAuthentications=password
|
||||||
|
|||||||
Reference in New Issue
Block a user