install requirements on ansible server
This commit is contained in:
13
main.yml
13
main.yml
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user