Files
aurbis/playbook.yml
T
2025-01-01 14:19:13 +01:00

22 lines
615 B
YAML

- name: Provision all hosts
hosts: all
become: true
tasks:
- name: >-
Allow mark to passwordless sudo all commands.
(First run should be with --ask-become-pass)
community.general.sudoers:
name: mark-sudo
state: present
user: mark
commands: ALL
- name: Set hostname
hostname:
name: "{{ inventory_hostname }}"
- name: Update debian
include_tasks: tasks/update_debian.yml
when: ansible_os_family == "Debian"
- name: Update arch
include_tasks: tasks/update_arch.yml
when: ansible_os_family == "Archlinux"