-
Notifications
You must be signed in to change notification settings - Fork 1
/
ome-appliance-configure.yml
52 lines (49 loc) · 1.75 KB
/
ome-appliance-configure.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
---
- hosts: mx-chassis
connection: local
name: Setup Chassis
gather_facts: False
vars:
ansible_managed: "Created by Ansible on {{ '%Y-%m-%d %H:%M:%S' | strftime }}"
vars_files:
- vault.yml
tasks:
- name: Configure Network
dellemc.openmanage.ome_application_network_address:
hostname: "{{ vault_ome_host }}"
username: "{{ vault_ome_username }}"
password: "{{ vault_ome_password }}"
#management_vlan:
# enable_vlan: true
# vlan_id: 3344
dns_configuration:
use_dhcp_for_dns_domain_name: True
#dns_domain_name: "{{ dns_domain }}"
#register_with_dns: True
dns_name: "{{ inventory_hostname }}"
- name: Configure NTP server for time synchronization.
dellemc.openmanage.ome_application_network_time:
hostname: "{{ vault_ome_host }}"
username: "{{ vault_ome_username }}"
password: "{{ vault_ome_password }}"
enable_ntp: true
time_zone: "TZ_ID_9" # Mountain
primary_ntp_address: "0.centos.pool.ntp.org"
secondary_ntp_address1: "1.centos.pool.ntp.org"
- name: Update session time out
dellemc.openmanage.ome_application_network_webserver:
hostname: "{{ vault_ome_host }}"
username: "{{ vault_ome_username }}"
password: "{{ vault_ome_password }}"
webserver_timeout: 120
# - name: Change password for root
# dellemc.openmanage.ome_user:
# hostname: "{{ vault_ome_host }}"
# username: "{{ vault_ome_username }}"
# password: "{{ vault_ome_password }}"
# state: "present"
# attributes:
# UserName: "root"
# Password: "calvin"
# RoleId: "10" # Chassis Administrator
# Enabled: True