Skip to content

Instantly share code, notes, and snippets.

@devops-school
devops-school / ansible-playbook-example-windows.md
Last active July 29, 2024 05:54
15 Ansible Playbooks Example for Windows Administration

1. Copying Files

---
- hosts: win

  tasks:
  - name: Copy File
    win_copy:
      src: C:\output.pdf
@gene1wood
gene1wood / How-to-pass-all-headers-in-CloudFront-using-CloudFormation.md
Last active February 8, 2023 20:24
How to configure CloudFront using CloudFormation to pass all headers

How to configure CloudFront using CloudFormation to pass all headers

How can you configure a CloudFront distribution to pass all headers to the origin if the CloudFront distribution is deployed using CloudFormation? If you deploy the distribution in the AWS Web Console, you can select between None, Whitelist and All. In CloudFront it appears that you can only assert a whitelist of allowed headers. This is done in this area of a CloudFormation resource describing a CloudFront distribution

Resources:
  CloudFrontDistribution:
    Type: AWS::CloudFront::Distribution
    Properties:
      DistributionConfig:

Tcpdump

Tcpdump is a commandline tool that is used to dump traffic on a network. This tool comes in hand when you want to analyse network captures within the command line. Basically it can do most of the wireshark job.

NOTE This guide might not be complete it just serve as a reference to me.

Additional Note & Reference

@snandam
snandam / ec2.tf
Last active November 15, 2022 19:43
Terraform - Bootstrap ec2 machine with ansible, copy scripts and run playbook
#--------------------------------------------------------------
# Create an EC2 machine, bootstrap with ansible
#
resource "aws_instance" "ec2-linux" {
ami = "ami-a4c7edb2"
vpc_security_group_ids = ["${aws_security_group.allow-all-test-sg.id}"]
key_name = "${var.private_ssh_key}"
instance_type = "t2.nano"
@Greyeye
Greyeye / ec2_windows_bootstrap.yml
Last active April 29, 2021 22:53
ansible ec2 bootstrap for windows serverit boots up AMI with MSSQL 2014 Express and install some basic tools like 7zip, notepad++tested with Ansible 2.0.2 on ubuntu 14.04 LTS~/.aws/credentials file is required for boto File Contents ==== ./ansible/ec2_windows_bootstrap.yml ./ansible/hosts ./ansible/group_vars/windows.yml to run ===== ./ansible/>…
---
- name: Provision an EC2 Instance
hosts: local
connection: local
gather_facts: False
tags: provisioning
# Necessary Variables for creating/provisioning the EC2 Instance
vars:
instance_type: t2.small
group_id: ['sg-xxx','sg-xxx']