initial commit
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
- 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"
|
||||
Reference in New Issue
Block a user