avnes.conky
ansible-role-conky
这是一个用于安装 Conky 并执行基本设置和配置的 Ansible 角色。基本的 .conkyrc 配置来自 [doyousketch2] (https://gist.github.com/doyousketch2/c0088f3827025ee037735f156e2c903c),并进行了略微调整。
要求
需要 Poetry。可以从 https://python-poetry.org/docs/ 安装。
角色变量
config_owner:
字符串(必填)用于指定需要配置 Conky 的 Linux 用户。
默认值: "{{ ansible_user_id }}"
config_owner_primary_group:
字符串(可选)用于指定 Conky 配置的组所有权。
默认值: "{{ config_owner }}"
这些变量位于 defaults/main.yml 中,大部分变量与 conkyrc.j2 模板一起使用。
alignment
background
border_outer_margin
border_width
cpu_avg_samples
default_color: white
default_outline_color
default_shade_color
draw_borders
draw_graph_borders
draw_outline
draw_shades
double_buffer
extra_newline
font
gap_x
gap_y
no_buffers
out_to_console
out_to_stderr
own_window
own_window_class
own_window_transparent
own_window_type
own_window_hints
short_units
stippled_borders
update_interval
uppercase
use_xft
use_spacer
show_graph_scale
show_graph_range
conky_text
依赖
无
示例剧本
- hosts: all
roles:
- { role: avnes.ansible-role-conky, config_owner: 'maya' }
为了 pip 兼容性
poetry export --dev --output requirements.txt
测试
poetry install
poetry shell
molecule test
许可证
MIT
作者信息
安装
ansible-galaxy install avnes.conky
许可证
mit
下载
1k
拥有者
Lead {Site Reliability, Cloud, DevOps, Platform} Engineer