Skip to content

Instantly share code, notes, and snippets.

@boris-42
Last active April 9, 2018 03:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save boris-42/cb943bf3693f6d1a256bd070dd3e6b11 to your computer and use it in GitHub Desktop.
Save boris-42/cb943bf3693f6d1a256bd070dd3e6b11 to your computer and use it in GitHub Desktop.
---
- hosts: all
tasks:
- name: "Install gpg key"
become: yes
apt_key:
url: "https://download.sublimetext.com/sublimehq-pub.gpg"
state: "present"
- name: Add sublime apt repo
become: yes
apt_repository:
repo: deb https://download.sublimetext.com/ apt/stable/
state: present
- name: Apt get update/upgrade
become: yes
apt:
force_apt_get: yes
upgrade: safe
update_cache: yes
- name: Apt Get Install packages
become: yes
apt:
force_apt_get: yes
state: present
name: "{{ item }}"
with_items:
- vim
- git
- sublime-text
- virt-*
- qemu-kvm
- docker-compose
- docker.io
- libvirt-bin
- stress-ng
- name: Add {{ ansible_user }} to libvirtd group
become: true
user:
name: "{{ ansible_user }}"
groups: "{{ item }}"
append: yes
with_items:
- docker
- libvirt
-- vim: ts=4 sw=4 noet ai cindent syntax=lua
--[[
Conky, a system monitor, based on torsmo
Any original torsmo code is licensed under the BSD license
All code written since the fork of torsmo is licensed under the GPL
Please see COPYING for details
Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
Copyright (c) 2005-2012 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)
All rights reserved.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
]]
conky.config = {
alignment = 'top_right',
background = false,
border_width = 1,
cpu_avg_samples = 2,
own_window_colour = 'black',
own_window_argb_visual = true,
own_window_argb_value = 0,
default_color = 'DEDEDE',
default_outline_color = 'DEDEDE',
default_shade_color = 'DEDEDE',
draw_borders = false,
draw_graph_borders = true,
draw_outline = false,
draw_shades = false,
use_xft = true,
font = 'DejaVu Sans Mono:size=13',
gap_x = 5,
gap_y = 60,
minimum_height = 5,
minimum_width = 5,
net_avg_samples = 2,
no_buffers = true,
out_to_console = false,
out_to_stderr = false,
extra_newline = false,
own_window = true,
own_window_class = 'Conky',
own_window_type = 'desktop',
stippled_borders = 0,
update_interval = 2.0,
uppercase = false,
use_spacer = 'none',
double_buffer = true,
show_graph_scale = false,
show_graph_range = false
}
conky.text = [[
${color white}$nodename - $sysname $kernel
${color white}Uptime:$color $uptime
${color white}CPU ($freq Mhz):$color $cpu%
${cpugraph 25 }
${color white}RAM:$color $memperc% $mem/$memmax
${memgraph 25 }
${color white}Processes:$color $processes ${color white}Running:$color $running_processes
${color white}Net: ${upspeed wlp6s0}↗ ${downspeed wlp6s0}↘
${upspeedgraph wlp6s0 25}
${downspeedgraph wlp6s0 25}
${color white}Name PID CPU% MEM%
${color DEDEDE} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color DEDEDE} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color DEDEDE} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color DEDEDE} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
${color DEDEDE} ${top name 5} ${top pid 5} ${top cpu 5} ${top mem 5}
${color white}Swap:$color $swap/$swapmax - $swapperc%
${swapbar 5 }
${color white}FS: $color${fs_used /}/${fs_size /}
${fs_bar 5 }
]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment