责任角色-责任角色

ansible-role-chron的Python项目详细描述


管理Chrony的角色

角色变量

Variables used for chrony
NameDefault ValueDescription
chrony_debugFalseEnable debug option in chrony
chrony_role_actionallAnsible action when including the role. Should be one of: [all|install|config|upgrade]
chrony_package_namechronychrony system package name
chrony_service_namechronydchrony system service name
chrony_manage_serviceTrueFlag used to specific if the ansible role should manage the service
chrony_manage_packageTrueFlag used to specific if the ansible role should manage the package
chrony_service_statestartedDefault service state to configure (started|stopped)
chrony_config_file_location/etc/chrony.confChrony configuration file location.
chrony_driftfile_path/var/lib/chrony/driftChrony drift file location
chrony_logdir_path/var/log/chronyChrony log directory location
chrony_ntp_servers[]List of NTP servers. This can be a list of hashes for advanced configuration. If using the hash format, a server_name and server_settings key should be populated with the appropriate data. If this is a list of hostnames, the chrony_global_server_settings will be appended to the configuration.
chrony_global_server_settings<none>Default setting to apply to the servers configuration
chrony_ntp_pools[]List of NTP pools. This can be a list of hashes for advanced configuration. If using the hash format, a pool_name and pool_settings key should be populated with the appropriate data. If this is a list of hostnames, the chrony_global_pool_settings will be appended to the configuration.
chrony_global_pool_settings<none>Default setting to apply to the pools configuration
chrony_ntp_peers[]List of NTP peers. This can be a list of hashes for advanced configuration. If using the hash format, a peer_name and peer_settings key should be populated with the appropriate data. If this is a list of hostnames, the chrony_global_peer_settings will be appended to the configuration.
chrony_global_peer_settings<none>Default setting to apply to the peers configuration
chrony_bind_addresses[‘127.0.0.1’, ‘::1’]List of addresses to bind to to listen for command packets
chrony_acl_rules[]List of specific allow/deny commands for the configuration file
chrony_rtc_settings[‘rtcsync’]List of specific real time lock settings
chrony_makestep1.0 3The chrony makestep configuration
chrony_extra_options[]A list of extra option strings that is added to the end of the configuraiton file. This list is joined with new lines.

要求

  • ansible >= 2.4
  • python >= 2.6

依赖关系

手册示例

- hosts: localhost
  become: true
  roles:
    - chrony

许可证

阿帕奇2.0

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java从类对象访问静态变量   java无法在三星A5上使用Toast(2016年)   java处理阻止图像在选择其他图像时消失   java Install4j Linux应用程序   swing在jpanel form java上具有暂停/恢复按钮   java Log4J登录年份文件夹   java XmlPullParser资源管理   JavaGoogleCloudEndpoints方法总是导致NullPointerException,为什么?   java JSON到带有POJO和Enum的Spring控制器   java制作自定义名称生成器?   java仅在设备屏幕的特定部分显示google地图多段线   java图像没有重新绘制,只是相乘   java如何将格式化字符串转换为浮点?   java无法提前很长时间安排TimerTask   当引用函数::和时,java Intellij IDEA无法解析“和”函数接口方法   java结束了dowhile循环   java Spring路径变量绑定   log4j API中FileAppender中的java问题   java使用QMessageBox从选项列表中进行选择