Configure desktop tasks
This commit is contained in:
parent
4ffdec9df5
commit
73b1ebe491
1 changed files with 62 additions and 1 deletions
63
playbook.yml
63
playbook.yml
|
@ -60,7 +60,7 @@
|
||||||
dest: '{{ ansible_user_dir }}/.config/vifm/'
|
dest: '{{ ansible_user_dir }}/.config/vifm/'
|
||||||
mode: 0640
|
mode: 0640
|
||||||
|
|
||||||
- name: Launch roles
|
- name: Launch Sway related roles
|
||||||
hosts: all
|
hosts: all
|
||||||
roles:
|
roles:
|
||||||
- ansible-sshagentd
|
- ansible-sshagentd
|
||||||
|
@ -69,3 +69,64 @@
|
||||||
- ansible-mako
|
- ansible-mako
|
||||||
- ansible-swaylock
|
- ansible-swaylock
|
||||||
- ansible-swayidle
|
- ansible-swayidle
|
||||||
|
|
||||||
|
- name: Configure desktop
|
||||||
|
hosts: all
|
||||||
|
tasks:
|
||||||
|
- name: Install packages on Arch
|
||||||
|
ansible.builtin.package:
|
||||||
|
pkg:
|
||||||
|
- arc-solid-gtk-theme
|
||||||
|
when: ansible distributon is "Archlinux"
|
||||||
|
|
||||||
|
- name: Install packages on Arch
|
||||||
|
ansible.builtin.package:
|
||||||
|
pkg:
|
||||||
|
- arc--theme
|
||||||
|
when: ansible distributon is "Debian"
|
||||||
|
|
||||||
|
- name: Install others packages
|
||||||
|
ansible.builtin.packages:
|
||||||
|
pkg:
|
||||||
|
- papirus-icon-theme
|
||||||
|
- firefox
|
||||||
|
- firefox-l10n-fr
|
||||||
|
- foot
|
||||||
|
- foot-terminfo
|
||||||
|
- glibc
|
||||||
|
- mpv
|
||||||
|
- waybar
|
||||||
|
|
||||||
|
- name: Copy executable files
|
||||||
|
ansible.builtin.copy:
|
||||||
|
src: bin/
|
||||||
|
dest: '{{ ansible_user_dir }}/.local/bin/'
|
||||||
|
mode: 0750
|
||||||
|
|
||||||
|
- name: Copy gtk3 configuration file
|
||||||
|
ansible.builtin.copy:
|
||||||
|
src: gtk-3.0/
|
||||||
|
dest: '{{ ansible_user_dir }}/.config/gtk-3.0/'
|
||||||
|
mode: 0640
|
||||||
|
|
||||||
|
- name: copy Import Gsetting systemd service file
|
||||||
|
ansible.builtin.copy:
|
||||||
|
src: 'systemd/import-gsettings.service'
|
||||||
|
dest: '{{ ansible_user_dir }}/.config/systemd/user/'
|
||||||
|
mode: 0640
|
||||||
|
register: service_file
|
||||||
|
|
||||||
|
- block:
|
||||||
|
|
||||||
|
- name: Reload Systemd daemon
|
||||||
|
ansible.builtin.systemd:
|
||||||
|
scope: user
|
||||||
|
daemon-reload: true
|
||||||
|
|
||||||
|
- name: Activate Import Gsettings service
|
||||||
|
ansible.builtin.systemd:
|
||||||
|
name: 'import-gsettings.service'
|
||||||
|
scope: user
|
||||||
|
state: started
|
||||||
|
|
||||||
|
when: service_file is changed and not ansible_check_mode
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue