2018-10-06 12:47:13 +01:00
|
|
|
- template:
|
|
|
|
src: ./files/i3status-rust.toml
|
|
|
|
dest: "{{ home }}/.config/i3/status.toml"
|
2018-09-10 13:58:30 +01:00
|
|
|
mode: 0644
|
2018-09-17 17:22:15 +01:00
|
|
|
owner: "{{ user }}"
|
2018-09-10 13:58:30 +01:00
|
|
|
group: users
|
|
|
|
|
2018-10-06 12:47:13 +01:00
|
|
|
- set_fact:
|
|
|
|
i3_config_files:
|
2018-10-06 12:53:09 +01:00
|
|
|
- {src: "i3.conf", dest: "{{ home }}/.config/i3/config"}
|
|
|
|
- {src: "i3status.conf", dest: "{{ home }}/.config/i3status/config"}
|
|
|
|
- {src: "compton.conf", dest: "{{ home }}/.config/compton.conf"}
|
|
|
|
- {src: "dunst.conf", dest: "{{ home }}/.config/dunst/dunstrc"}
|
2018-09-10 13:58:30 +01:00
|
|
|
|
2018-10-06 12:47:13 +01:00
|
|
|
- name: "Create i3 config file directories"
|
2018-10-06 15:02:04 +01:00
|
|
|
with_items: "{{ i3_config_files }}"
|
2018-10-06 12:47:13 +01:00
|
|
|
file:
|
|
|
|
path: '{{ item.dest | dirname }}'
|
|
|
|
state: directory
|
2018-09-17 17:22:15 +01:00
|
|
|
owner: "{{ user }}"
|
2018-10-06 12:47:13 +01:00
|
|
|
mode: 0755
|
2018-09-10 13:58:30 +01:00
|
|
|
|
2018-10-06 12:47:13 +01:00
|
|
|
- name: "Copy i3 config files"
|
2018-10-06 15:02:04 +01:00
|
|
|
with_items: "{{ i3_config_files }}"
|
2018-10-06 12:47:13 +01:00
|
|
|
copy:
|
|
|
|
src: './files/{{ item.src }}'
|
|
|
|
dest: '{{ item.dest }}'
|
2018-09-10 13:58:30 +01:00
|
|
|
mode: 0644
|
2018-09-17 17:22:15 +01:00
|
|
|
owner: "{{ user }}"
|