Feat: this is workstation!

This commit is contained in:
2022-01-05 14:03:11 +01:00
parent 272aa5e11a
commit 712c75bb85
16 changed files with 441 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
---
# tasks file for workstation
- name: More colorfull pacman
lineinfile:
dest: /etc/pacman.conf
regexp: '^#Color$'
line: 'Color'
backrefs: yes
ignore_errors: yes
- name: Install pkgs
community.general.pacman:
name: "{{ item }}"
state: present
with_items: pacman_pkgs
- name: Install AUR pkgs
kewlfft.aur.aur:
name: "{{ item }}"
state: present
with_items: aur_pkgs
- name: enable service cups
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

@@ -0,0 +1,38 @@
---
# tasks file for workstation
- name: Install for arch
import_tasks: arch.yml
when: ansible_os_family == "Archlinux"
- name: enable service cups
systemd:
name: cups
# name: org.cups.cups
enabled: yes
state: started
- name: Set hostname resolution
ansible.builtin.lineinfile:
path: /etc/nsswitch.conf
regexp: "^hosts:"
line: hosts: files mymachines myhostname mdns_minimal [NOTFOUND=return] resolve [!UNAVAIL=return] dns
- name: enable service avahi-daemon
systemd:
name: avahi-daemon
enabled: yes
state: started
- name: enable service nfs
systemd:
name: nfs-client.target
enabled: yes
state: started
- name: More colorfull pacman
lineinfile:
dest: /etc/pacman.conf
regexp: '^#Color$'
line: 'Color'
backrefs: yes
ignore_errors: yes