Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Koaxiel committed Jul 30, 2017
1 parent 5de4b41 commit f068627
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 2 deletions.
2 changes: 2 additions & 0 deletions roles/archiso/files/vconsole.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
KEYMAP=fr-latin9
FONT=lat9w-16
9 changes: 9 additions & 0 deletions roles/archiso/files/wpa_supplicant-wired.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
ctrl_interface=/var/run/wpa_supplicant
ap_scan=0
network={
key_mgmt=IEEE8021X
eap=PEAP
identity="{{ username }}"
password="{{ password }}"
phase2="autheap=MSCHAPV2"
}
42 changes: 40 additions & 2 deletions roles/archiso/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,32 @@
dest: "{{ archiso_dir }}/archlive"
become: yes

- name: Add ansible package
- name: Change airootfs size
lineinfile:
backrefs: yes
path: "{{ item }}"
regexp: '^(options(?!.*\bcow_spacesize=1G\b).*)$'
line: '\1 cow_spacesize=1G'
become: yes
with_items:
- "{{ archiso_dir }}/archlive/efiboot/loader/entries/archiso-x86_64-cd.conf"
- "{{ archiso_dir }}/archlive/efiboot/loader/entries/archiso-x86_64-usb.conf"

- name: Add ansible & git package
lineinfile:
dest: "{{ archiso_dir }}/archlive/packages.both"
insertbefore: BOF
state: present
line: "ansible"
line: "{{ item }}"
become: yes
with_items:
- ansible
- git

- name: Git clone koaxiel
git:
repo: "https://github.com/Koaxiel/koaxiel.git"
dest: "{{ archiso_dir }}/archlive/airootfs/root/koaxiel/"

- name: Override [email protected]
copy:
Expand All @@ -37,6 +56,13 @@
dest: "{{ archiso_dir }}/archlive/airootfs/etc/systemd/system/[email protected]/override.conf"
become: yes

- name: Change mirrorlist
lineinfile:
dest: "{{ archiso_dir }}/archlive/airootfs/root/customize_airootfs.sh"
line: "curl -o /etc/pacman.d/mirrorlist 'https://www.archlinux.org/mirrorlist/?country=FR&protocol=http&protocol=https&ip_version=4&ip_version=6&use_mirror_status=on'"
insertbefore: 'sed -i "s/#Server/Server/g" /etc/pacman.d/mirrorlist'
become: yes

- name: Enable sshd
lineinfile:
dest: "{{ archiso_dir }}/archlive/airootfs/root/customize_airootfs.sh"
Expand All @@ -49,6 +75,18 @@
line: "echo 'root:toto' | chpasswd"
become: yes

- name: Set vconsole
copy:
src: files/vconsole.conf
dest: "{{ archiso_dir }}/archlive/airootfs/etc/vconsole.conf"
become: yes

- name: Add wpa_supplicant-wired.conf in root
copy:
src: files/wpa_supplicant-wired.conf
dest: "{{ archiso_dir }}/archlive/airootfs/root/wpa_supplicant-wired.conf"
become: yes

- name: Build iso
command: "bash {{ archiso_dir }}/archlive/build.sh -v -w {{ archiso_dir }}/archlive/work -o {{ archiso_dir }}"
become: yes

0 comments on commit f068627

Please sign in to comment.