Feat: workstation runs

This commit is contained in:
Bertrand Benjamin 2022-01-05 14:21:33 +01:00
parent 712c75bb85
commit a7283dee69
3 changed files with 45 additions and 66 deletions

View File

@ -3,16 +3,16 @@
pacman_utils: pacman_utils:
- nfs-utils - nfs-utils
- samba - samba
- cups
- cups-pdf
- avahi
- nss-mdns
pacman_cli:
- git-annex - git-annex
- fzf - fzf
- ripgrep - ripgrep
- tig - tig
- cups
- cups-pdf
- avahi
- mdns_minimal
pacman_cli:
- moc - moc
- pass - pass
- task - task
@ -78,36 +78,35 @@ pacman_fonts:
- ttf-inconsolata - ttf-inconsolata
- noto-fonts - noto-fonts
pacman_gnome: pacman_programming:
- gnome - pandoc
- gdm - python
- gnome-tweaks - python-virtualenv
- gparted - python-pip
- transmission-gtk - python2
- quodlibet - python2-virtualenv
- networkmanager - python2-pip
- network-manager-applet - graphviz
- gnome-keyring - python-black
- grsync - pyenv
- soundconverter - nodejs
- picard - yarn
- shotwell
- pitivi
- seahorse
- python-psutil
pacman_pkgs: pacman_pkgs:
- "{{ pacman_utils }}" - "{{ pacman_utils }}"
- "{{ pacman_cli }}" # - "{{ pacman_cli }}"
- "{{ pacman_terms }}" # - "{{ pacman_terms }}"
- "{{ pacman_office }}" # - "{{ pacman_office }}"
- "{{ pacman_media }}" # - "{{ pacman_media }}"
- "{{ pacman_work }}" # - "{{ pacman_work }}"
- "{{ pacman_3Dprint }}" # - "{{ pacman_3Dprint }}"
- "{{ pacman_fonts }}" # - "{{ pacman_fonts }}"
aur_utils:
- autofs
aur_fonts: - ttf-ubuntu-mono-derivative-powerline-git aur_fonts:
- ttf-ubuntu-mono-derivative-powerline-git
- ttf-inconsolata-lgc-for-powerline - ttf-inconsolata-lgc-for-powerline
- ttf-droid-sans-mono-slashed-powerline-git - ttf-droid-sans-mono-slashed-powerline-git
- ttf-literation-mono-powerline-git - ttf-literation-mono-powerline-git
@ -120,5 +119,6 @@ aur_work:
- perl-locale-codes - perl-locale-codes
aur_pkgs: aur_pkgs:
- "{{ aur_fonts }}" - "{{ aur_utils }}"
- "{{ aur_work }}" # - "{{ aur_fonts }}"
# - "{{ aur_work }}"

View File

@ -12,32 +12,13 @@
community.general.pacman: community.general.pacman:
name: "{{ item }}" name: "{{ item }}"
state: present state: present
with_items: pacman_pkgs update_cache: yes
with_items: "{{ pacman_pkgs }}"
- name: Install AUR pkgs - name: Install AUR pkgs
kewlfft.aur.aur: aur:
name: "{{ item }}" name: "{{ item }}"
state: present state: present
with_items: aur_pkgs with_items: "{{ aur_pkgs }}"
become: yes
- name: enable service cups become_user: aur_builder
systemd:
name: cups
# name: org.cups.cups
enabled: yes
state: started
when: not minimal or not server
- name: enable service avahi-daemon
systemd:
name: avahi-daemon
enabled: yes
state: started
when: not minimal or not server
- name: enable service nfs
systemd:
name: nfs-client.target
enabled: yes
state: started
when: not minimal or not server

View File

@ -15,7 +15,7 @@
ansible.builtin.lineinfile: ansible.builtin.lineinfile:
path: /etc/nsswitch.conf path: /etc/nsswitch.conf
regexp: "^hosts:" regexp: "^hosts:"
line: hosts: files mymachines myhostname mdns_minimal [NOTFOUND=return] resolve [!UNAVAIL=return] dns line: "hosts: files mymachines myhostname mdns_minimal [NOTFOUND=return] resolve [!UNAVAIL=return] dns"
- name: enable service avahi-daemon - name: enable service avahi-daemon
systemd: systemd:
@ -29,10 +29,8 @@
enabled: yes enabled: yes
state: started state: started
- name: More colorfull pacman - name: Enable autofs daemon
lineinfile: service:
dest: /etc/pacman.conf name: autofs
regexp: '^#Color$' state: started
line: 'Color' enabled: yes
backrefs: yes
ignore_errors: yes