You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
677 B
26 lines
677 B
- name: Upgrade / replace / downgrade / uninstall all installed packages to the latest versions available
|
|
community.general.pacman:
|
|
upgrade: yes
|
|
update_cache: yes
|
|
|
|
- name: install doas
|
|
community.general.pacman:
|
|
name: opendoas
|
|
state: latest
|
|
|
|
- name: edit doas.conf
|
|
lineinfile:
|
|
line: 'permit nopass keepenv :wheel'
|
|
regexp: '^.*permit nopass keepenv :wheel.*$'
|
|
path: /etc/doas.conf
|
|
create: yes
|
|
owner: root
|
|
group: wheel
|
|
mode: 0600
|
|
|
|
# currently broken; does not find hostnamectl binary
|
|
- name: set hostname (via systemd)
|
|
hostname:
|
|
name: "{{ bootstrap_hostname }}.{{ bootstrap_domain }}"
|
|
use: systemd
|
|
ignore_errors: yes
|
|
|