| OLD | NEW |
| 1 --- | 1 --- |
| 2 - hosts: 127.0.0.1 | 2 - hosts: 127.0.0.1 |
| 3 connection: local | 3 connection: local |
| 4 remote_user: chrome-bot | 4 remote_user: chrome-bot |
| 5 become_user: root | 5 become_user: root |
| 6 become: yes | 6 become: yes |
| 7 become_method: sudo | 7 become_method: sudo |
| 8 vars: | 8 vars: |
| 9 image: /opt/rpi_img/2016-03-18-raspbian-jessie-lite.img | 9 image: /opt/rpi_img/2016-03-18-raspbian-jessie-lite.img |
| 10 # 8192 * 512 | 10 # 8192 * 512 |
| 11 offset_boot: 4194304 | 11 offset_boot: 4194304 |
| 12 # 131072 * 512 | 12 # 131072 * 512 |
| 13 offset_root: 67108864 | 13 offset_root: 67108864 |
| 14 tasks: | 14 tasks: |
| 15 # Set up mounts in image's fstab | 15 # Set up mounts in image's fstab |
| 16 - lineinfile: dest=/opt/raspberrypi/root/etc/fstab regexp=".*mmcblk0p2.*" st
ate=absent | 16 - lineinfile: dest=/opt/raspberrypi/root/etc/fstab regexp=".*mmcblk0p2.*" st
ate=absent |
| 17 - lineinfile: dest=/opt/raspberrypi/root/etc/fstab line="/dev/mmcblk0p3 /b
ext4 defaults 0 2" state=present | 17 - lineinfile: dest=/opt/raspberrypi/root/etc/fstab line="/dev/mmcblk0p3 /b
ext4 defaults,noatime 0 2" state=present |
| 18 - lineinfile: dest=/opt/raspberrypi/root/etc/fstab line="/dev/mmcblk0p5 /va
r ext4 defaults 0 2" state=present | 18 - lineinfile: dest=/opt/raspberrypi/root/etc/fstab line="/dev/mmcblk0p5 /va
r ext4 defaults,noatime 0 2" state=present |
| 19 - lineinfile: dest=/opt/raspberrypi/root/etc/fstab line="/dev/mmcblk0p6 /tm
p ext4 defaults 0 2" state=present | 19 - lineinfile: dest=/opt/raspberrypi/root/etc/fstab line="/dev/mmcblk0p6 /tm
p ext4 defaults,noatime 0 2" state=present |
| 20 - lineinfile: dest=/opt/raspberrypi/root/etc/fstab line="/dev/mmcblk0p7 /ho
me/chrome-bot ext4 defaults 0 2" state=present | 20 - lineinfile: dest=/opt/raspberrypi/root/etc/fstab line="/dev/mmcblk0p7 /ho
me/chrome-bot ext4 defaults,noatime 0 2" state=present |
| 21 | 21 |
| 22 # Swarming needs a /b file (which will have an SD card partition mounted to
it.) | 22 # Swarming needs a /b file (which will have an SD card partition mounted to
it.) |
| 23 - file: path=/opt/raspberrypi/root/b state=directory mode=0777 | 23 - file: path=/opt/raspberrypi/root/b state=directory mode=0777 |
| 24 # Make the hostname be set from the cmdline, not etc/hostname | 24 # Make the hostname be set from the cmdline, not etc/hostname |
| 25 - file: path=/opt/raspberrypi/root/etc/hostname state=absent | 25 - file: path=/opt/raspberrypi/root/etc/hostname state=absent |
| 26 # Autologin to our user | 26 # Autologin to our user |
| 27 - lineinfile: dest=/opt/raspberrypi/root/lib/systemd/system/getty@.service r
egexp="^ExecStart.*" state=absent | 27 - lineinfile: dest=/opt/raspberrypi/root/lib/systemd/system/getty@.service r
egexp="^ExecStart.*" state=absent |
| 28 - lineinfile: dest=/opt/raspberrypi/root/lib/systemd/system/getty@.service l
ine="ExecStart=-/sbin/agetty --autologin chrome-bot --noclear %I $TERM" state=pr
esent insertafter="\[Service\]" | 28 - lineinfile: dest=/opt/raspberrypi/root/lib/systemd/system/getty@.service l
ine="ExecStart=-/sbin/agetty --autologin chrome-bot --noclear %I $TERM" state=pr
esent insertafter="\[Service\]" |
| 29 | 29 |
| 30 - name: Fixing udev rules for Android and NVIDIA devices | 30 - name: Fixing udev rules for Android and NVIDIA devices |
| (...skipping 14 matching lines...) Expand all Loading... |
| 45 - command: umount /opt/raspberrypi/root/dev | 45 - command: umount /opt/raspberrypi/root/dev |
| 46 ignore_errors: true | 46 ignore_errors: true |
| 47 - command: umount /opt/raspberrypi/root/proc | 47 - command: umount /opt/raspberrypi/root/proc |
| 48 ignore_errors: true | 48 ignore_errors: true |
| 49 - command: umount /opt/raspberrypi/root/sys | 49 - command: umount /opt/raspberrypi/root/sys |
| 50 ignore_errors: true | 50 ignore_errors: true |
| 51 | 51 |
| 52 - mount: name="/opt/raspberrypi/root" src="dontcare" fstype="auto" state="un
mounted" | 52 - mount: name="/opt/raspberrypi/root" src="dontcare" fstype="auto" state="un
mounted" |
| 53 handlers: | 53 handlers: |
| 54 | 54 |
| OLD | NEW |