1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_i3wm.git synced 2024-08-16 10:09:53 +02:00

Cleanup a bit

This commit is contained in:
L3D 2024-07-23 13:32:33 +02:00
parent 5fc2c88380
commit 1166aa014b
Signed by: l3d
GPG key ID: CD08445BFF4313D1
4 changed files with 10 additions and 26 deletions

View file

@ -25,20 +25,3 @@
loop_var: swayusr loop_var: swayusr
label: "{{ swayusr.home }}/.config/waybar/" label: "{{ swayusr.home }}/.config/waybar/"
when: sway__waybar | bool when: sway__waybar | bool
# - name: Ensure i3 packages are installed [Archlinux}
# ansible.builtin.include_tasks:
# file: setup-Archlinux.yml
# when: ansible_os_family == 'Archlinux'
#
# - name: Ensure i3 packages are installed [RHEL].
# ansible.builtin.include_tasks:
# file: setup-RedHat.yml
# when: ansible_os_family == 'Fedora' or ansible_os_family == 'RedHat'
# - name: Create i3 config file
# ansible.builtin.include_tasks:
# file: config.yml
# loop: "{{ i3wm_user_list | flatten(1) }}"
# loop_control:
# loop_var: i3wm_usr

View file

@ -7,12 +7,6 @@
when: when:
- ansible_pkg_mgr == "apt" - ansible_pkg_mgr == "apt"
# - name: Ensure i3 packages are installed.
# ansible.builtin.apt:
# name: "{{ i3_packages }}"
# state: "present"
# become: true
- name: Ensure swaywm is installed. - name: Ensure swaywm is installed.
ansible.builtin.apt: ansible.builtin.apt:
name: "{{ item }}" name: "{{ item }}"
@ -28,7 +22,6 @@
- 'swayimg' - 'swayimg'
- 'wdisplays' - 'wdisplays'
- 'wlsunset' - 'wlsunset'
- 'waybar'
- name: Ensure font-awesome is installed - name: Ensure font-awesome is installed
ansible.builtin.apt: ansible.builtin.apt:

View file

@ -1,8 +1,16 @@
--- ---
- name: Ensure waybar is installed.
ansible.builtin.apt:
name: "{{ item }}"
state: "present"
become: true
with_items:
- 'waybar'
- name: Create waybar config folder - name: Create waybar config folder
become: true become: true
ansible.builtin.file: ansible.builtin.file:
path: "{{ swayusr.home }}/.config/waybr/" path: "{{ swayusr.home }}/.config/waybar/"
state: directory state: directory
mode: '0750' mode: '0750'
owner: "{{ swayusr.user }}" owner: "{{ swayusr.user }}"

View file

@ -1,3 +1,3 @@
--- ---
playbook_version_number: 5 # should be int playbook_version_number: 6 # should be int
playbook_version_path: 'role-roles-ansible.sway.version' playbook_version_path: 'role-roles-ansible.sway.version'