Make ansiblels happy
This commit is contained in:
parent
eb1def3633
commit
f03d5ebf67
1 changed files with 24 additions and 24 deletions
48
playbook.yml
48
playbook.yml
|
@ -5,7 +5,7 @@
|
|||
|
||||
- name: Load host relative variables
|
||||
ansible.builtin.include_vars:
|
||||
dir: 'vars/{{ ansible_hostname}}'
|
||||
dir: 'vars/{{ ansible_hostname }}'
|
||||
|
||||
- name: Merge Sway output variable
|
||||
ansible.builtin.set_fact:
|
||||
|
@ -16,13 +16,14 @@
|
|||
- name: Merge Sway input variable
|
||||
ansible.builtin.set_fact:
|
||||
sway_inputs: '{{ local_sway_inputs |
|
||||
community.general.lists_mergeby(sway_inputs, "name" ) }}'
|
||||
community.general.lists_mergeby( sway_inputs, "name" ) }}'
|
||||
when: local_sway_inputs is defined
|
||||
|
||||
- name: Merge Kanshi profiles variable
|
||||
ansible.builtin.set_fact:
|
||||
sway_outputs: '{{ local_kanshi_profiles |
|
||||
community.general.lists_mergeby(kanshi_profiles, "profile") }}'
|
||||
sway_outputs: |
|
||||
'{{ local_kanshi_profiles |
|
||||
community.general.lists_mergeby(kanshi_profiles, "profile") }}'
|
||||
when: local_kanshi_profiles is defined
|
||||
|
||||
- name: Install CLI stuff
|
||||
|
@ -33,8 +34,8 @@
|
|||
ansible.builtin.copy:
|
||||
src: config/
|
||||
dest: '{{ ansible_user_dir }}/.config/'
|
||||
mode: 0640
|
||||
directory_mode: 0750
|
||||
mode: '0640'
|
||||
directory_mode: '0750'
|
||||
|
||||
- name: Install packages
|
||||
ansible.builtin.package:
|
||||
|
@ -51,7 +52,7 @@
|
|||
ansible.builtin.copy:
|
||||
src: '{{ item }}'
|
||||
dest: '{{ ansible_user_dir }}'
|
||||
mode: 0640
|
||||
mode: '0640'
|
||||
loop:
|
||||
- zsh/.zshrc
|
||||
- zsh/.zprofile
|
||||
|
@ -71,7 +72,7 @@
|
|||
tasks:
|
||||
- name: Install packages on Arch
|
||||
ansible.builtin.package:
|
||||
pkg:
|
||||
pkg:
|
||||
- glib2
|
||||
- pinentry
|
||||
- gcr
|
||||
|
@ -81,12 +82,12 @@
|
|||
- ttf-liberation
|
||||
- ttf-linux-libertine
|
||||
- arc-solid-gtk-theme
|
||||
when: ansible_distribution == "Archlinux"
|
||||
when: ansible_distribution == "Archlinux"
|
||||
become: true
|
||||
|
||||
- name: Install packages on Debian
|
||||
ansible.builtin.package:
|
||||
pkg:
|
||||
pkg:
|
||||
- arc-theme
|
||||
- fonts-dejavu
|
||||
- fonts-firacode
|
||||
|
@ -100,7 +101,7 @@
|
|||
- pulseaudio-utils
|
||||
- texlive
|
||||
- webext-browserpass
|
||||
when: ansible_distribution == "Debian"
|
||||
when: ansible_distribution == "Debian"
|
||||
become: true
|
||||
|
||||
- name: Install others packages
|
||||
|
@ -132,19 +133,18 @@
|
|||
mode: 0750
|
||||
|
||||
- block:
|
||||
- name: Reload Systemd daemon
|
||||
ansible.builtin.systemd:
|
||||
scope: user
|
||||
daemon-reload: true
|
||||
|
||||
- name: Reload Systemd daemon
|
||||
ansible.builtin.systemd:
|
||||
scope: user
|
||||
daemon-reload: true
|
||||
|
||||
- name: Activate Import Various service
|
||||
ansible.builtin.systemd:
|
||||
name: '{{ item }}'
|
||||
scope: user
|
||||
state: started
|
||||
loop:
|
||||
- import-gsettings.service
|
||||
- waybar.service
|
||||
- name: Activate Import Various service
|
||||
ansible.builtin.systemd:
|
||||
name: '{{ item }}'
|
||||
scope: user
|
||||
state: started
|
||||
loop:
|
||||
- import-gsettings.service
|
||||
- waybar.service
|
||||
|
||||
when: service_file is changed and not ansible_check_mode
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue