mirror of
https://github.com/roles-ansible/ansible_role_sway.git
synced 2024-08-16 13:49:49 +02:00
48 lines
1,021 B
YAML
48 lines
1,021 B
YAML
---
|
|
- name: Update apt cache
|
|
become: true
|
|
ansible.builtin.apt:
|
|
cache_valid_time: 3600
|
|
update_cache: true
|
|
when:
|
|
- ansible_pkg_mgr == "apt"
|
|
|
|
- name: Ensure swaywm is installed.
|
|
ansible.builtin.apt:
|
|
name: "{{ item }}"
|
|
state: "present"
|
|
become: true
|
|
with_items:
|
|
- 'sway'
|
|
- 'sway-backgrounds'
|
|
- 'swaylock'
|
|
- 'sway-notification-center'
|
|
- 'swaybg'
|
|
- 'swayidle'
|
|
- 'swayimg'
|
|
- 'wdisplays'
|
|
- 'cmatrix'
|
|
|
|
- name: Ensure font-awesome is installed
|
|
ansible.builtin.apt:
|
|
name: "{{ item }}"
|
|
state: "present"
|
|
become: true
|
|
with_items:
|
|
- 'fonts-font-awesome'
|
|
- 'virtualenv'
|
|
when: sway__dynamic_names | bool
|
|
|
|
- name: Ensure terminal Packages are installed
|
|
ansible.builtin.apt:
|
|
name: "{{ item }}"
|
|
state: "present"
|
|
become: true
|
|
with_items: "{{ sway__term_pkgs }}"
|
|
|
|
- name: Ensure launcher Packages are installed
|
|
ansible.builtin.apt:
|
|
name: "{{ item }}"
|
|
state: "present"
|
|
become: true
|
|
with_items: "{{ sway__install_launcher }}"
|