i3 playbook has been tested successfully.
This commit is contained in:
@@ -5,26 +5,41 @@
|
|||||||
# work to change things around. Good alternative to DWM and so lightweight that
|
# work to change things around. Good alternative to DWM and so lightweight that
|
||||||
# it doesn´t even matter if both are installed!!
|
# it doesn´t even matter if both are installed!!
|
||||||
|
|
||||||
- name: Workstation | Linux | Software | i3 | Facts | General
|
- name: Workstation | Linux | Software | i3 | Facts | General [1/2]
|
||||||
set_fact:
|
|
||||||
i3_config_this: "settings/i3.config"
|
|
||||||
i3_config_that: "{{ user_user.home }}/.config/i3/config"
|
|
||||||
|
|
||||||
- name: Workstation | Linux | Software | i3 | Facts | Debian Derivitives
|
|
||||||
set_fact:
|
set_fact:
|
||||||
i3_package: i3
|
i3_package: i3
|
||||||
when: ansible_distribution in ("Debian", "Devuan")
|
i3_config: "settings/i3.config"
|
||||||
|
i3_config_dir: "{{ user_user.home }}/.config/i3"
|
||||||
|
|
||||||
|
- name: Workstation | Linux | Software | i3 | Facts | General [1/2]
|
||||||
|
set_fact:
|
||||||
|
i3_config_file: "{{ i3_config_dir }}/config"
|
||||||
|
|
||||||
|
#- name: Workstation | Linux | Software | i3 | Facts | TBD
|
||||||
|
# set_fact:
|
||||||
|
# i3_package: i3-wm
|
||||||
|
# when: ansible_distribution in ("TBD")
|
||||||
|
|
||||||
- name: Workstation | Linux | Software | i3 | Install
|
- name: Workstation | Linux | Software | i3 | Install
|
||||||
- package:
|
package:
|
||||||
name: "{{ i3_package }}"
|
name:
|
||||||
status: present
|
- "{{ i3_package }}"
|
||||||
refresh_cache: yes
|
- "{{ lightdm }}"
|
||||||
|
state: present
|
||||||
|
update_cache: yes
|
||||||
|
|
||||||
- name: Workstation | Linux | Software | i3 | Config
|
- name: Workstation | Linux | Software | i3 | Config | Create Dir
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "{{ i3_config_dir }}"
|
||||||
|
state: directory
|
||||||
|
mode: '0755'
|
||||||
|
owner: "{{ user }}"
|
||||||
|
group: "{{ user }}"
|
||||||
|
|
||||||
|
- name: Workstation | Linux | Software | i3 | Config | Copy File
|
||||||
copy:
|
copy:
|
||||||
src: "{{ i3_config_this }}"
|
src: "{{ i3_config }}"
|
||||||
dest: "{{ i3_config_that }}"
|
dest: "{{ i3_config_file }}"
|
||||||
owner: "{{ user.user }}"
|
owner: "{{ user }}"
|
||||||
group: "{{ user.user }}"
|
group: "{{ user }}"
|
||||||
mode: 0664
|
mode: '0664'
|
||||||
|
|||||||
Reference in New Issue
Block a user