/usr/home/jens/Development/ansible/roles/conky on deathbolt.927589452.space at Mi. 13 März 2019 17:47:16 CET
This commit is contained in:
commit
5cc0bb4985
4 changed files with 94 additions and 0 deletions
28
tasks/conky.yml
Normal file
28
tasks/conky.yml
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
---
|
||||
- name: install prequsites
|
||||
package:
|
||||
name: conky
|
||||
state: present
|
||||
become: true
|
||||
tags:
|
||||
- installation
|
||||
|
||||
- name: generate directories
|
||||
file:
|
||||
state: directory
|
||||
dest: "{{ home_path }}/{{ current_user}}/.config/conky"
|
||||
owner: "{{ current_user }}"
|
||||
become: true
|
||||
tags:
|
||||
- configuration
|
||||
|
||||
- name: generate conkyrc
|
||||
template:
|
||||
src: conkyrc.j2
|
||||
dest: "{{ home_path }}/{{ current_user}}/.config/conky/conky.conf"
|
||||
owner: "{{ current_user }}"
|
||||
become: true
|
||||
tags:
|
||||
- configuration
|
||||
|
||||
|
||||
7
tasks/main.yml
Normal file
7
tasks/main.yml
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
- include_tasks: "{{ item }}"
|
||||
tags:
|
||||
- installation
|
||||
- configuration
|
||||
loop:
|
||||
- conky.yml
|
||||
16
tasks/vars.yml
Normal file
16
tasks/vars.yml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
- debug:
|
||||
msg: "{{ansible_distribution}}-{{ansible_distribution_major_version}}-{{ansible_distribution}}"
|
||||
verbosity: 0
|
||||
|
||||
- name: Load OS specific vars, if available
|
||||
include_vars: "{{ lookup('first_found', params)}}"
|
||||
vars:
|
||||
params:
|
||||
files:
|
||||
- '{{ansible_distribution}}-{{ansible_distribution_major_version}}.yml'
|
||||
- '{{ansible_distribution}}.yml'
|
||||
- '{{ansible_os_family}}.yml'
|
||||
- default.yml
|
||||
paths:
|
||||
- 'vars'
|
||||
Loading…
Add table
Add a link
Reference in a new issue