Time synchronization configuration
Ansible Role timemaster
SEAPATH provides an Ansible role fortimemaster to automate the setup of time synchronization on your hosts.
This role:
Generates and manages the
/etc/linuxptp/timemaster.conffile.Enables and supervises the
timemasterservice.Populates the
ptp4l,chrony, andphc2syssections according to your variables.
Main Variables:
Variable | Purpose |
|---|---|
| Name of the network interface that receives PTP frames. |
| (Optional) VLAN ID to use for the PTP interface. |
| List of NTP servers to configure in the |
By setting these variables in your inventory or playbook, you describe exactly how timemaster should behave on each host.
⚠️ Networking Is Separate
The timemaster role does not create or configure network interfaces itself.
If you need to create a dedicated interface or VLAN for PTP traffic, do it first using the network_basics role on Ansible Galaxy
network_basicsconsumescustom_network/custom_netdevvariables where you can write your desiredsystemd-networkdconfiguration (interfaces, VLANs, bonds, etc.).Once the interface exists, you can point
timemasterat it viaptp_interfaceand, if applicable,ptp_vlanid.
This separation ensures that network changes and time synchronization configuration remain decoupled and manageable.
Documentation
For all variable names, defaults, and examples, consult the official documentation of each role: