| 1 |
--- |
| 2 |
- name: Dell OME Application network settings. |
| 3 |
hosts: ome |
| 4 |
gather_facts: false |
| 5 |
|
| 6 |
tasks: |
| 7 |
- name: IPv4 network settings |
| 8 |
dellemc.openmanage.ome_application_network_address: |
| 9 |
hostname: "{{ hostname }}" |
| 10 |
username: "{{ username }}" |
| 11 |
password: "{{ password }}" |
| 12 |
ca_path: "/path/to/ca_cert.pem" |
| 13 |
ipv4_configuration: |
| 14 |
enable: true |
| 15 |
enable_dhcp: false |
| 16 |
static_ip_address: 192.168.0.2 |
| 17 |
static_subnet_mask: 255.255.254.0 |
| 18 |
static_gateway: 192.168.0.3 |
| 19 |
use_dhcp_for_dns_server_names: false |
| 20 |
static_preferred_dns_server: 192.168.0.4 |
| 21 |
static_alternate_dns_server: "" |
| 22 |
reboot_delay: 5 |
| 23 |
tags: |
| 24 |
- ipv4_config |
| 25 |
delegate_to: localhost |
| 26 |
|
| 27 |
- name: IPv6 network settings |
| 28 |
dellemc.openmanage.ome_application_network_address: |
| 29 |
hostname: "{{ hostname }}" |
| 30 |
username: "{{ username }}" |
| 31 |
password: "{{ password }}" |
| 32 |
ca_path: "/path/to/ca_cert.pem" |
| 33 |
ipv6_configuration: |
| 34 |
enable: true |
| 35 |
enable_auto_configuration: true |
| 36 |
static_ip_address: 2626:f2f2:f081:9:1c1c:f1f1:4747:1 |
| 37 |
static_prefix_length: 10 |
| 38 |
static_gateway: 2626:f2f2:f081:9:1c1c:f1f1:4747:2 |
| 39 |
use_dhcp_for_dns_server_names: true |
| 40 |
static_preferred_dns_server: 2626:f2f2:f081:9:1c1c:f1f1:4747:3 |
| 41 |
static_alternate_dns_server: 2626:f2f2:f081:9:1c1c:f1f1:4747:4 |
| 42 |
reboot_delay: 10 |
| 43 |
tags: |
| 44 |
- ipv6_config |
| 45 |
delegate_to: localhost |
| 46 |
|
| 47 |
- name: Management vLAN settings for primary interface |
| 48 |
dellemc.openmanage.ome_application_network_address: |
| 49 |
hostname: "{{ hostname }}" |
| 50 |
username: "{{ username }}" |
| 51 |
password: "{{ password }}" |
| 52 |
ca_path: "/path/to/ca_cert.pem" |
| 53 |
management_vlan: |
| 54 |
enable_vlan: true |
| 55 |
vlan_id: 3344 |
| 56 |
dns_configuration: |
| 57 |
register_with_dns: false |
| 58 |
reboot_delay: 1 |
| 59 |
tags: |
| 60 |
- mgmt_vlan |
| 61 |
delegate_to: localhost |
| 62 |
|
| 63 |
- name: DNS settings |
| 64 |
dellemc.openmanage.ome_application_network_address: |
| 65 |
hostname: "{{ hostname }}" |
| 66 |
username: "{{ username }}" |
| 67 |
password: "{{ password }}" |
| 68 |
ca_path: "/path/to/ca_cert.pem" |
| 69 |
ipv4_configuration: |
| 70 |
enable: true |
| 71 |
enable_dhcp: true |
| 72 |
use_dhcp_for_dns_server_names: false |
| 73 |
static_preferred_dns_server: 192.168.0.4 |
| 74 |
static_alternate_dns_server: 192.168.0.5 |
| 75 |
dns_configuration: |
| 76 |
register_with_dns: true |
| 77 |
use_dhcp_for_dns_domain_name: false |
| 78 |
dns_name: "MX-SVCTAG" |
| 79 |
dns_domain_name: "localdomainname" |
| 80 |
reboot_delay: 1 |
| 81 |
tags: |
| 82 |
- dns_config |
| 83 |
delegate_to: localhost |
| 84 |
|
| 85 |
- name: Complete network settings |
| 86 |
dellemc.openmanage.ome_application_network_address: |
| 87 |
hostname: "{{ hostname }}" |
| 88 |
username: "{{ username }}" |
| 89 |
password: "{{ password }}" |
| 90 |
ca_path: "/path/to/ca_cert.pem" |
| 91 |
ipv4_configuration: |
| 92 |
enable: true |
| 93 |
enable_dhcp: false |
| 94 |
static_ip_address: 192.168.0.2 |
| 95 |
static_subnet_mask: 255.255.254.0 |
| 96 |
static_gateway: 192.168.0.3 |
| 97 |
use_dhcp_for_dns_server_names: false |
| 98 |
static_preferred_dns_server: 192.168.0.4 |
| 99 |
static_alternate_dns_server: 192.168.0.5 |
| 100 |
ipv6_configuration: |
| 101 |
enable: true |
| 102 |
enable_auto_configuration: true |
| 103 |
static_ip_address: 2626:f2f2:f081:9:1c1c:f1f1:4747:1 |
| 104 |
static_prefix_length: 10 |
| 105 |
static_gateway: 2626:f2f2:f081:9:1c1c:f1f1:4747:2 |
| 106 |
use_dhcp_for_dns_server_names: true |
| 107 |
static_preferred_dns_server: 2626:f2f2:f081:9:1c1c:f1f1:4747:3 |
| 108 |
static_alternate_dns_server: 2626:f2f2:f081:9:1c1c:f1f1:4747:4 |
| 109 |
dns_configuration: |
| 110 |
register_with_dns: true |
| 111 |
use_dhcp_for_dns_domain_name: false |
| 112 |
dns_name: "MX-SVCTAG" |
| 113 |
dns_domain_name: "localdomainname" |
| 114 |
reboot_delay: 1 |
| 115 |
tags: |
| 116 |
- all_network_config |
| 117 |
delegate_to: localhost |