Configure ESXi Syslog location via Ansible

Configure ESXi Syslog location via Ansible

To create this  playbook I use ansible module called vmware_host_config_manager

Ansible documentation: https://docs.ansible.com/ansible/latest/collections/community/vmware/vmware_host_config_manager_module.html

 

  1. Before start please install module.

 

2. Download playbook and secret file.

playbook >> ESXiSyslog

secret file >> secrets

 

3. ESXiSyslog looks like below and you need to use advance parameter Syslog.global.logDir to create scratch log location.

I add also some welcome massage by configure Annotations.WelcomeMessage parameter.

and host logging level by configure Config.HostAgent.log.level parameter.

 

4. Run playbook by ansible-playbook ansible/ESXiSyslog.yml

 

5. Lets check result.

 – Syslog.global.logDir   ” [NFS01]ESX-Logs”

   – Annotations.WelcomeMessage  “This system is for the use of authorized users only”

 

Config.HostAgent.log.level “warning”

 

 

 

Please Subscribe

Loading

Leave a Reply

Your email address will not be published. Required fields are marked *