2022-01-05 13:03:11 +00:00
|
|
|
---
|
|
|
|
# tasks file for workstation
|
|
|
|
- name: Install for arch
|
|
|
|
import_tasks: arch.yml
|
|
|
|
|
|
|
|
- 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:"
|
2022-01-05 13:21:33 +00:00
|
|
|
line: "hosts: files mymachines myhostname mdns_minimal [NOTFOUND=return] resolve [!UNAVAIL=return] dns"
|
2022-01-05 13:03:11 +00:00
|
|
|
|
|
|
|
- name: enable service avahi-daemon
|
|
|
|
systemd:
|
|
|
|
name: avahi-daemon
|
|
|
|
enabled: yes
|
|
|
|
state: started
|
|
|
|
|
2022-01-12 08:31:58 +00:00
|
|
|
- name: disable old network services
|
2022-01-05 13:03:11 +00:00
|
|
|
systemd:
|
2022-01-12 08:31:58 +00:00
|
|
|
name: '{{ item }}'
|
|
|
|
enabled: no
|
|
|
|
with_items:
|
|
|
|
- dhcpcd
|
|
|
|
ignore_errors: yes
|
2022-01-05 13:03:11 +00:00
|
|
|
|
2022-01-12 08:31:58 +00:00
|
|
|
- name: enable service NetworkManager
|
|
|
|
systemd:
|
|
|
|
name: NetworkManager
|
2022-01-05 13:21:33 +00:00
|
|
|
enabled: yes
|
2022-01-12 15:22:59 +00:00
|
|
|
state: started
|
|
|
|
|
|
|
|
- name: enable service bluetooth
|
|
|
|
systemd:
|
|
|
|
name: bluetooth
|
|
|
|
enabled: yes
|
|
|
|
state: started
|
2022-01-12 08:31:58 +00:00
|
|
|
|
2022-01-13 04:56:29 +00:00
|
|
|
- name: Virtualisation tools
|
|
|
|
import_tasks: virtualisation.yml
|
|
|
|
|
2022-01-12 08:31:58 +00:00
|
|
|
- name: activate autofs
|
|
|
|
import_tasks: home_mounts.yml
|
|
|
|
when: autofs | length > 0
|