feat ✨: Update SSH key variable references for Ubuntu and Fedora templates in testing.yml
This commit is contained in:
@@ -4,11 +4,12 @@
|
|||||||
tasks:
|
tasks:
|
||||||
# - name: Import variables from Ansible vault
|
# - name: Import variables from Ansible vault
|
||||||
# ansible.builtin.include_vars: secrets.yml
|
# ansible.builtin.include_vars: secrets.yml
|
||||||
|
|
||||||
- name: Deploy templates with proxmox_template_vm
|
- name: Deploy templates with proxmox_template_vm
|
||||||
ansible.builtin.include_role:
|
ansible.builtin.include_role:
|
||||||
name: joshrnoll.homelab.proxmox_template_vm
|
name: joshrnoll.homelab.proxmox_template_vm
|
||||||
vars:
|
vars:
|
||||||
|
|
||||||
# Required to provide at least one
|
# Required to provide at least one
|
||||||
proxmox_template_vm_distros:
|
proxmox_template_vm_distros:
|
||||||
- fedora
|
- fedora
|
||||||
@@ -26,7 +27,8 @@
|
|||||||
proxmox_template_vm_ubuntu_cores: 1
|
proxmox_template_vm_ubuntu_cores: 1
|
||||||
proxmox_template_vm_ubuntu_ciuser: "{{ ciuser }}" # From Ansible vault
|
proxmox_template_vm_ubuntu_ciuser: "{{ ciuser }}" # From Ansible vault
|
||||||
proxmox_template_vm_ubuntu_cipassword: "{{ cipassword }}" # From Ansible vault
|
proxmox_template_vm_ubuntu_cipassword: "{{ cipassword }}" # From Ansible vault
|
||||||
proxmox_template_vm_ubuntu_sshkeys: "{{ lookup('file', lookup('env', 'HOME') + '/.ssh/id_rsa.pub') }}" # gets your ssh key from /home/user/.ssh/id_rsa.pub -- customize this to your needs
|
# proxmox_template_vm_ubuntu_sshkeys: "{{ lookup('file', lookup('env', 'HOME') + '/.ssh/id_rsa.pub') }}" # gets your ssh key from /home/user/.ssh/id_rsa.pub -- customize this to your needs
|
||||||
|
proxmox_template_vm_ubuntu_sshkeys: "{{ ssh_public_keys }}" # gets your ssh key from /home/user/.ssh/id_rsa.pub -- customize this to your needs
|
||||||
proxmox_template_vm_ubuntu_vlan: 50
|
proxmox_template_vm_ubuntu_vlan: 50
|
||||||
|
|
||||||
# Optional customizations for fedora
|
# Optional customizations for fedora
|
||||||
@@ -36,7 +38,7 @@
|
|||||||
proxmox_template_vm_fedora_cores: 1
|
proxmox_template_vm_fedora_cores: 1
|
||||||
proxmox_template_vm_fedora_ciuser: "{{ ciuser }}" # From Ansible vault
|
proxmox_template_vm_fedora_ciuser: "{{ ciuser }}" # From Ansible vault
|
||||||
proxmox_template_vm_fedora_cipassword: "{{ cipassword }}" # From Ansible vault
|
proxmox_template_vm_fedora_cipassword: "{{ cipassword }}" # From Ansible vault
|
||||||
proxmox_template_vm_fedora_sshkeys: "{{ lookup('file', lookup('env', 'HOME') + '/.ssh/id_rsa.pub') }}" # gets your ssh key from /home/user/.ssh/id_rsa.pub -- customize this to your needs
|
proxmox_template_vm_fedora_sshkeys: "{{ ssh_public_keys }}" # gets your ssh key from /home/user/.ssh/id_rsa.pub -- customize this to your needs
|
||||||
proxmox_template_vm_fedora_vlan: 50
|
proxmox_template_vm_fedora_vlan: 50
|
||||||
|
|
||||||
# Set to true if you have slow storage to avoid file locks
|
# Set to true if you have slow storage to avoid file locks
|
||||||
|
|||||||
Reference in New Issue
Block a user