1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_sway.git synced 2024-08-16 13:49:49 +02:00
ansible_role_sway/tasks/setup-Debian.yml

49 lines
1,004 B
YAML
Raw Normal View History

2017-12-31 00:56:01 +01:00
---
2023-05-19 17:07:00 +02:00
- name: Update apt cache
become: true
ansible.builtin.apt:
cache_valid_time: 3600
update_cache: true
when:
- ansible_pkg_mgr == "apt"
2024-07-17 15:45:32 +02:00
# - name: Ensure i3 packages are installed.
# ansible.builtin.apt:
# name: "{{ i3_packages }}"
# state: "present"
# become: true
- name: Ensure swaywm is installed.
ansible.builtin.apt:
name: "{{ item }}"
state: "present"
become: true
with_items:
2024-07-17 21:47:59 +02:00
- 'sway'
- 'sway-backgrounds'
- 'swaylock'
- 'sway-notification-center'
- 'swaybg'
- 'swayidle'
- 'swayimg'
- 'wdisplays'
- 'wlsunset'
- 'waybar'
2024-07-17 15:45:32 +02:00
- name: Ensure font-awesome is installed
2021-11-08 12:28:11 +01:00
ansible.builtin.apt:
2024-07-17 15:45:32 +02:00
name: "{{ item }}"
2017-12-31 00:56:01 +01:00
state: "present"
become: true
2024-07-17 15:45:32 +02:00
with_items:
2024-07-17 21:47:59 +02:00
- 'fonts-font-awesome'
- 'virtualenv'
2024-07-17 15:45:32 +02:00
when: sway__dynamic_names | bool
2024-07-17 21:47:59 +02:00
- name: Ensure terminal Packages are installed
ansible.builtin.apt:
name: "{{ item }}"
state: "present"
become: true
with_items: "{{ sway__term_pkgs }}"