2021-01-29 00:08:39 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Queries package manager for graphical instalation
|
|
|
|
package:
|
|
|
|
name:
|
|
|
|
- i3-wm
|
|
|
|
- i3blocks
|
|
|
|
- i3status
|
|
|
|
register: pkg_result
|
|
|
|
retries: 3
|
|
|
|
until: pkg_result is succeeded
|
|
|
|
|
|
|
|
- name: Create i3 configuration folder hierarchy
|
|
|
|
file:
|
|
|
|
path: '.config/{{ item }}'
|
|
|
|
state: directory
|
2021-03-17 23:25:44 +00:00
|
|
|
owner: '{{ user.name }}'
|
|
|
|
group: '{{ user.name }}'
|
|
|
|
mode: 0755
|
2021-01-29 00:08:39 +00:00
|
|
|
with_items:
|
|
|
|
- i3/
|
|
|
|
- i3status/
|
2021-03-17 23:25:44 +00:00
|
|
|
become_user: '{{ user.name }}'
|
2021-01-29 00:08:39 +00:00
|
|
|
|
|
|
|
- name: Copy i3 configuration files
|
|
|
|
template:
|
|
|
|
src: '{{ item }}.j2'
|
|
|
|
dest: '.config/{{ item }}/config'
|
2021-03-17 23:25:44 +00:00
|
|
|
owner: '{{ user.name }}'
|
|
|
|
group: '{{ user.name }}'
|
|
|
|
mode: 0755
|
2021-01-29 00:08:39 +00:00
|
|
|
with_items:
|
|
|
|
- i3
|
|
|
|
- i3status
|
2021-03-17 23:25:44 +00:00
|
|
|
become_user: '{{ user.name }}'
|