diff --git a/tasks/setupacdc.yml b/tasks/setupacdc.yml index 6fb77a4..9a0dea9 100644 --- a/tasks/setupacdc.yml +++ b/tasks/setupacdc.yml @@ -1,13 +1,3 @@ -- hosts: localhost - tasks: - - - name: Install 'proxmoxer' Python library on the control node - ansible.builtin.pip: - name: proxmoxer - state: present - delegate_to: localhost - # become: yes # Required if installing to the system Python environment - - hosts: node0 gather_facts: yes vars: @@ -15,7 +5,17 @@ mac_address: "8E:90:31:DE:31:36" tasks: - + - name: Install 'proxmoxer' and 'requests' Python libraries on the control node + ansible.builtin.pip: + # List both libraries here + name: + - proxmoxer + - requests + state: present + # delegate_to: localhost + become: yes # Use 'become: yes' if installing to the system Python environment + + - name: Create lxc container community.proxmox.proxmox: vmid: 200