Skip to content

Instantly share code, notes, and snippets.

@jackprice
Last active May 18, 2019 22:41
Show Gist options
  • Save jackprice/79f6838d2626db4e7786a6bf253a5679 to your computer and use it in GitHub Desktop.
Save jackprice/79f6838d2626db4e7786a6bf253a5679 to your computer and use it in GitHub Desktop.
Ansible+Kickstart+Push
install
cdrom
keyboard --vckeymap=gb --xlayouts='gb'
lang en_GB.UTF-8
timezone Europe/London --isUtc
network --hostname={{ inventory_hostname }}
%packages
python
python-dnf
libselinux-python
libsemanage-python
%end
- hosts: all
become: no
connection: local
tasks:
- name: create kickstart file
template:
src: kickstart.cfg.j2
dest: "{{ playbook_dir }}/build/{{ inventory_hostname }}.cfg"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment