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-playbook -v playbook.yml --extra-vars "variable-1=false" |
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-playbook customization.yml -t test --ask-become-pass |
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
./test/libs/bats/bin/bats test/ |
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
--- | |
- name: Debian base configuration. | |
hosts: localhost | |
connection: local | |
gather_facts: yes | |
roles: | |
- role: debian-base |
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
xorriso -as mkisofs -o ~/remaster.iso \ | |
-isohybrid-mbr /usr/lib/ISOLINUX/isohdpfx.bin \ | |
-c isolinux/boot.cat \ | |
-b isolinux/isolinux.bin -no-emul-boot \ | |
-boot-load-size 4 -boot-info-table /path_to_iso_files |
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
docker stop $(docker ps -a -q) | |
docker rm $(docker ps -a -q) |
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
docker run -t constrict0r/debian-kickstart ls |
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
docker build -t constrict0r/catalyst:latest . | |
docker login | |
docker push constrict0r/catalyst:latest |
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-playbook -i tests/inventory tests/test.yml --ask-become-pass \ | |
--extra-vars 'iso_path=file:///home/username/debian-9.7.0-amd64-netinst.iso \ | |
firmware_path=/home/username/firmware \ | |
partype=whole \ | |
rootpass="1234" \ | |
userpass="1234" \ | |
networkname="MY NETWORK" \ | |
networkpass="my-network-pass"' |
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
- name: Hello when you exists. | |
debug: | |
msg: Hello, you exist. | |
when: not ( | |
(you is undefined) | |
or | |
(you is none) | |
or | |
(you | trim == '') | |
) |