WIP: Initial VM provisioning #4

Closed
cyclane wants to merge 38 commits from initial-vm-provisioning into main
2 changed files with 5 additions and 3 deletions
Showing only changes of commit 7582010748 - Show all commits

View File

@ -1,12 +1,14 @@
- name: Provision joplin Proxmox VM - name: Provision joplin Proxmox VM
hosts: localhost hosts: joplin
connection: ansible.builtin.local
gather_facts: false
vars: vars:
api_user: "{{ lookup('ansible.builtin.env', 'PROXMOX_USER') }}" api_user: "{{ lookup('ansible.builtin.env', 'PROXMOX_USER') }}"
api_host: "{{ lookup('ansible.builtin.env', 'PROXMOX_HOST' ) }}" api_host: "{{ lookup('ansible.builtin.env', 'PROXMOX_HOST' ) }}"
api_token_id: "{{ lookup('ansible.builtin.env', 'PROXMOX_TOKEN_ID') }}" api_token_id: "{{ lookup('ansible.builtin.env', 'PROXMOX_TOKEN_ID') }}"
api_token_secret: "{{ lookup('ansible.builtin.env', 'PROXMOX_TOKEN_SECRET') }}" api_token_secret: "{{ lookup('ansible.builtin.env', 'PROXMOX_TOKEN_SECRET') }}"
ssh_public: "{{ lookup('ansible.builtin.env', 'SSH_PUBLIC') }}" ssh_public: "{{ lookup('ansible.builtin.env', 'SSH_PUBLIC') }}"
vmname: joplin vmname: "{{ inventory_hostname | regex_replace('^([^\\.]+)\\..+$', '\\1') }}"
node: pve node: pve
module_defaults: module_defaults:
community.general.proxmox_kvm: community.general.proxmox_kvm:

View File

@ -10,7 +10,7 @@ proxmox:
children: children:
joplin: joplin:
hosts: hosts:
joplin.srv.home.local.koval.net: joplin2.srv.home.local.koval.net:
vars: vars:
ansible_user: debian ansible_user: debian
ansible_ssh_private_key_file: ~/.ssh/id_rsa ansible_ssh_private_key_file: ~/.ssh/id_rsa