update hostname
Infrastructure / Check and run Ansbile playbooks (pull_request) Failing after 1m56s Details

This commit is contained in:
Gleb Koval 2023-09-06 01:35:34 +01:00
parent 54d26948bd
commit 7582010748
Signed by: cyclane
GPG Key ID: 15E168A8B332382C
2 changed files with 5 additions and 3 deletions

View File

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

View File

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