install requirements on ansible server

This commit is contained in:
2023-06-16 19:22:48 +02:00
parent a65387e536
commit a5d3a387ca

View File

@@ -1,10 +1,21 @@
---
- name: Install required Pip modules
hosts: localhost
become: true
tasks:
- name: Install proxmoxer and requests modules
pip:
name:
- proxmoxer
- requests
state: present
- name: Create VM from template, update the ip and hardware, resize the disk,
hosts: all
gather_facts: false
vars_files:
- vars/proxmox.yml
- defaults/vm_sizing.yml
- defaults/vm_sizing.yml
tasks:
- name: Create VM from template