22 lines
615 B
YAML
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"
|