ansible-arch-provissionning/tasks/main.yml

32 lines
533 B
YAML
Raw Normal View History

2021-03-14 12:41:46 +00:00
---
# 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