Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
| - name: Doorbell | |
| hosts: "{{ target | default('all')}}" | |
| gather_facts: no | |
| vars: | |
| ansible_connection: community.aws.aws_ssm | |
| ansible_aws_ssm_bucket_name: <REQUIRED-bucket-name> | |
| ansible_aws_ssm_region: us-east-1 | |
| pre_tasks: | |
| - name: Say Hello |
Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
All screen commands are prefixed by an escape key, by default Ctrl-a (that's Control-a, sometimes written ^a). To send a literal Ctrl-a to the programs in screen, use Ctrl-a a. This is useful when when working with screen within screen. For example Ctrl-a a n will move screen to a new window on the screen within screen.
| Description | Command |
|---|
| #!/bin/bash | |
| export AWS_PROFILE=maison | |
| export AWS_REGION=us-west-2 | |
| VPC_ID=$(aws ec2 create-vpc --cidr-block 10.0.0.0/16 --query "Vpc.VpcId" --output text) |
| #!/usr/bin/env bash | |
| aws ec2 describe-instances \ | |
| | jq '.Reservations[].Instances[0] | {id: .InstanceId, ami: .ImageId, platfrom: .PlatformDetails, arch: .Architecture, az: .Placement.AvailabilityZone, ip: .PrivateIpAddress, name: [.Tags[] | select (.Key=="Name").Value]}' | |
| ecs update-service --cluster rch-cf-kafka --service kafka-rest-proxy --desired-count 0 | |
| For anyone still having this issue what you can try doing is clearing the pending version and reattempting the rotation |
| #! /bin/sh | |
| git reset --hard --recurse-submodules | |
| git clean -xfd | |
| git submodule foreach --recursive git clean -xfd | |
| git submodule update --init --recursive | |
| git submodule foreach --recursive git checkout main | |
| git pull | |
| git submodule foreach --recursive git pull |
| #!/usr/bin/env bash | |
| DB_FILE=data.gz | |
| TARGET_DB=sensmapserver | |
| zcat ${DB_FILE} | mysql -u username -p ${TARGET_DB} |
| version: '3' | |
| services: | |
| mongo1: | |
| hostname: mongo1 | |
| container_name: localmongo1 | |
| image: mongo | |
| restart: always | |
| expose: | |
| - 27017 | |
| ports: |
| #!/usr/bin/env sh | |
| opts=':bc:d:f:s:t:p:h' | |
| usage() { | |
| echo "Error ${1}" | |
| echo "Usage: ${script_name} options" | |
| echo "options:" | |
| echo " -b | use bump script" | |
| echo " -c | container name (* required)" |