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,
|
- name: Create VM from template, update the ip and hardware, resize the disk,
|
||||||
hosts: all
|
hosts: all
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
vars_files:
|
vars_files:
|
||||||
- vars/proxmox.yml
|
- vars/proxmox.yml
|
||||||
- defaults/vm_sizing.yml
|
- defaults/vm_sizing.yml
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Create VM from template
|
- name: Create VM from template
|
||||||
|
|||||||
Reference in New Issue
Block a user