37 lines
774 B
YAML
37 lines
774 B
YAML
---
|
|
# 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: Enable autofs daemon
|
|
service:
|
|
name: autofs
|
|
state: started
|
|
enabled: yes
|