This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
packages: | |
- bridge-utils | |
- libvirt-daemon-system | |
# ansible-galaxy install constrict0r.constructor | |
# ansible localhost -m include_role -a name=constrict0r.constructor -K -e "configuration=/home/username/resting-configuration.yml" | |
# sudo addgroup libvirtd | |
# sudo adduser username libvirtd | |
# sudo apt install qemu-utils |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh-keygen -t rsa -b 4096 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
packages: | |
- https://is.gd/XXhPd9 | |
- fritzing | |
- fritzing-data | |
- fritzing-parts | |
- telegram-desktop | |
- wesnoth | |
packages_pip: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
date -s '2019-10-09' | |
date -s '20:09:00' | |
# Or | |
sudo hwclock --hctosys |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<domainsnapshot> | |
<name>fresh</name> | |
<description>Fresh installation.</description> | |
</domainsnapshot> | |
<!-- cd /var/lib/libvirt/images --> | |
<!-- sudo virsh snapshot create <VM-Name> fresh.xml --> | |
<!-- sudo virsh snapshot revert <VM-Name> fresh --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Post install script. | |
# Execute kick.sh to setup the system. | |
d-i preseed/late_command string \ | |
wget https://raw.githubusercontent.com/constrict0r/kick/master/kick.sh -O /target/usr/local/sbin/kick.sh; \ | |
chmod +x /target/usr/local/sbin/kick.sh; \ | |
cp /custom-config.yml /target/usr/local/sbin/custom-config.yml &>/dev/null; \ | |
sed -i '/^\ *deb\ cdrom/s/^\(.*\)$/#\1/' /target/etc/apt/sources.list; \ | |
mkdir /dev/shm; \ | |
mount --bind /dev/pts /target/dev/pts; \ | |
mount --bind /dev/shm /target/dev/shm; \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
printf %b '@reboot root (sleep 90; /bin/bash /usr/local/sbin/kick.sh -u {{ username }} {{ desktop_parameters }} {{ custom_parameters }})\n' >> /target/etc/crontab; \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ansible localhost -m include_role -a name=constrict0r.iso -K -e \ | |
'username=constrict0r userpass=1234 rootpass=1234 device=sdb preseed=true \ | |
preseed_wireless=true preseed_partitioning=true preseed_last_question=true \ | |
preseed_custom=/home/constrict0r/repos/madvillain/defaults/main.yml networkname="MY NETWORK" \ | |
networkpass="my-network-pass" hostname="latveria" domain="amanita"' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Git new branch-rebase-merge process. | |
# On this snippet we changed the name of the folder | |
# license to license-repo. | |
# Get last changes and create a new branch. | |
git pull origin master | |
git checkout -b license-repo | |
# Here we make changes to the repository and add our commits. | |
# Rename folder license to license-repo. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ansible my_pattern -i inventory -m ping -e "ansible_user=debian ansible_ssh_pass=debian" | |
ansible my_pattern -i inventory -m include_role -a name=constrict0r.task -e "{ansible_user: username, ansible_ssh_pass: 1234, ansible_become_pass: 1234, users: username, user_tasks: ['https://is.gd/uE0TTp']}" | |
# Inventory: | |
# [my_pattern] | |
# 192.168.100.196 |