Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
This commit is contained in:
Jeroen Oudshoorn
2023-11-02 21:16:09 +01:00
parent 0a017f8677
commit 4af60bbc64
2 changed files with 1 additions and 37 deletions

View File

@ -288,43 +288,6 @@
path: /boot/ssh
state: touch
#- name: adjust /boot/config.txt
# lineinfile:
# dest: /boot/config.txt
# insertafter: EOF
# line: '{{ item }}'
# with_items: "{{system.boot_options}}"
- name: adjust /etc/modules
lineinfile:
dest: /etc/modules
insertafter: EOF
line: '{{ item }}'
with_items: "{{system.modules}}"
- name: change g_serial to g_ether
lineinfile:
dest: /etc/modules
regexp: '^g_serial'
line: "g_ether"
state: present
#- name: change root partition
# replace:
# dest: /boot/cmdline.txt
# backup: no
# regexp: "root=PARTUUID=[a-zA-Z0-9\\-]+"
# replace: "root=/dev/mmcblk0p2"
#- name: configure /boot/cmdline.txt
# lineinfile:
# path: /boot/cmdline.txt
# backrefs: True
# state: present
# backup: no
# regexp: '(.*)$'
# line: '\1 modules-load=dwc2,g_ether'
- name: Add pwnlog alias
lineinfile:
dest: /home/pi/.bashrc

View File

@ -185,6 +185,7 @@ build {
provisioner "ansible-local" {
command = "ANSIBLE_FORCE_COLOR=1 PYTHONUNBUFFERED=1 PWN_VERSION=${var.pwn_version} PWN_HOSTNAME=${var.pwn_hostname} ansible-playbook"
extra_arguments = ["--extra-vars \"ansible_python_interpreter=/usr/bin/python3\""]
playbook_dir = "../builder/"
playbook_file = "../builder/raspberrypi32.yml"
}
}