ansible-arch-provissionning/tasks/main.yml
2021-03-14 13:41:46 +01:00

32 lines
533 B
YAML

---
# tasks file for ansible-arch-provissionning
- name: Abort if the host is not booted from the Arch install media
fail:
msg: "This host is not booted from the Arch install media!"
when: ansible_nodename != 'archiso'
- name: Synchronize clock via NTP
command: timedatectl set-ntp true
- name: wipe drives
j
loop: '{{ partition_table }}'
- name: create partition
- name: create filesystems
- name: mount
- name: add local mirror
- name: pacstrap
- name: Set up initramfs
- name: Set up grub
- name: Reboot