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