Feat: workstation runs
This commit is contained in:
@@ -12,32 +12,13 @@
|
||||
community.general.pacman:
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
with_items: pacman_pkgs
|
||||
update_cache: yes
|
||||
with_items: "{{ pacman_pkgs }}"
|
||||
|
||||
- name: Install AUR pkgs
|
||||
kewlfft.aur.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
|
||||
with_items: "{{ aur_pkgs }}"
|
||||
become: yes
|
||||
become_user: aur_builder
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/nsswitch.conf
|
||||
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
|
||||
systemd:
|
||||
@@ -29,10 +29,8 @@
|
||||
enabled: yes
|
||||
state: started
|
||||
|
||||
- name: More colorfull pacman
|
||||
lineinfile:
|
||||
dest: /etc/pacman.conf
|
||||
regexp: '^#Color$'
|
||||
line: 'Color'
|
||||
backrefs: yes
|
||||
ignore_errors: yes
|
||||
- name: Enable autofs daemon
|
||||
service:
|
||||
name: autofs
|
||||
state: started
|
||||
enabled: yes
|
||||
|
||||
Reference in New Issue
Block a user