WIP: Joplin VM #3

Closed
cyclane wants to merge 12 commits from joplin-initial into main
2 changed files with 9 additions and 8 deletions
Showing only changes of commit 985b4b5127 - Show all commits

View File

@ -36,7 +36,7 @@ jobs:
- name: Check playbooks - name: Check playbooks
run: | run: |
for file in $(find . -wholename "*/infra/*playbook.yaml" -type f); do for file in $(find . -wholename "*/infra/*playbook.yaml" -type f); do
ansible-playbook --inventory ./inventory --check "$file" ansible-playbook --inventory ./inventory --syntax-check "$file"
done done
- name: Get changed playbooks - name: Get changed playbooks

View File

@ -1,11 +1,12 @@
- name: Provision joplin Proxmox VM - name: Provision joplin Proxmox VM
hosts: localhost hosts: localhost
gather_facts: false # gather_facts: false
vars: vars:
api_user: "{{ lookup('env', 'PROXMOX_USER') }}" api_user: "{{ lookup('ansible.builtin.env', 'PROXMOX_USER') }}"
api_host: "{{ lookup('env', 'PROXMOX_HOST' ) }}" api_host: "{{ lookup('ansible.builtin.env', 'PROXMOX_HOST' ) }}"
api_token_id: "{{ lookup('env', 'PROXMOX_TOKEN_ID') }}" api_token_id: "{{ lookup('ansible.builtin.env', 'PROXMOX_TOKEN_ID') }}"
api_token_secret: "{{ lookup('env', 'PROXMOX_TOKEN_SECRET') }}" api_token_secret: "{{ lookup('ansible.builtin.env', 'PROXMOX_TOKEN_SECRET') }}"
ssh_public: "{{ lookup('ansible.builtin.env', 'SSH_PUBLIC') }}"
vmname: joplin vmname: joplin
node: pve node: pve
module_defaults: module_defaults:
@ -31,7 +32,7 @@
tasks: tasks:
- name: Create VM - name: Create VM
community.general.proxmox_kvm: community.general.proxmox_kvm:
clone: pve-debian-12 clone: "{{ node }}-debian-12"
storage: nvme storage: nvme
- name: Wait for VM to exist - name: Wait for VM to exist
community.general.proxmox_kvm: community.general.proxmox_kvm:
@ -58,7 +59,7 @@
community.general.proxmox_kvm: community.general.proxmox_kvm:
update: true update: true
ciuser: debian ciuser: debian
sshkeys: "{{ lookup('env', 'SSH_PUBLIC') }}" sshkeys: "{{ ssh_public }}"
ipconfig: ipconfig:
ipconfig0: ip=dhcp,ip6=auto ipconfig0: ip=dhcp,ip6=auto
agent: enabled=1 agent: enabled=1