modified: tasks/setupacdc.yml
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
- hosts: localhost
|
||||
gather_facts: yes
|
||||
|
||||
vars:
|
||||
addc_hostname: "DC1"
|
||||
mac_address: "8E:90:31:DE:31:36"
|
||||
|
||||
tasks:
|
||||
- name: Install 'proxmoxer' and 'requests' Python libraries for the ansible controller
|
||||
ansible.builtin.pip:
|
||||
@@ -10,14 +14,6 @@
|
||||
state: present
|
||||
become: no
|
||||
|
||||
- hosts: node0
|
||||
gather_facts: yes
|
||||
vars:
|
||||
addc_hostname: "DC1"
|
||||
mac_address: "8E:90:31:DE:31:36"
|
||||
|
||||
tasks:
|
||||
|
||||
- name: Create lxc container
|
||||
community.proxmox.proxmox:
|
||||
vmid: 200
|
||||
@@ -43,4 +39,3 @@
|
||||
pubkey: 'ssh-ed25519 AAAAC3NzaC1...hBWA ansibleuser@ansiblehost'
|
||||
netif:
|
||||
net0: "name=eth0,hwaddr={{ mac_address }},gw={{ location_gateway }},ip={{ addc_ansible_host }}/24,bridge=vmbr0"
|
||||
delegate_to: localhost
|
||||
|
||||
Reference in New Issue
Block a user