Skip to content

Instantly share code, notes, and snippets.


Abreto Abreto

View GitHub Profile
Abreto / aws_create_site.yml
Created January 13, 2023 16:25 — forked from ruzickap/aws_create_site.yml
Ansible playbook which creates instances and tag volumes
View aws_create_site.yml
- name: Create Instance in AWS
hosts: localhost
connection: local
gather_facts: false
aws_access_key: "xxxxxx"
aws_secret_key: "xxxxxx"
security_token: "xxxxxx"
Abreto / ansible-add-string-to-line.yml
Created January 10, 2023 14:17 — forked from iAugur/ansible-add-string-to-line.yml
Ansible: Add a String to an existing line in a file
View ansible-add-string-to-line.yml
# Adapted from solution provided by
# Scenario: You want to add a group to the list of the AllowGroups in ssh_config
# before:
# AllowGroups Group1
# After:
# AllowGroups Group1 Group2
- name: Add Group to AllowGroups
backup: yes
Abreto /
Created December 27, 2022 12:55 — forked from O1ahmad/
CrystalDiskMark-esque Disk Benchmark (using fio)
LOOPS=5 #How many times to run each test
SIZE=1024 #Size of each test, multiples of 32 recommended for Q32 tests to give the most accurate results.
WRITEZERO=0 #Set whether to write zeroes or randoms to testfile (random is the default for both fio and crystaldiskmark); dd benchmarks typically only write zeroes which is why there can be a speed difference.
QSIZE=$(($SIZE / 32)) #Size of Q32Seq tests