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
powershell.exe -Command "& {[Net.ServicePointManager]::SecurityProtocol = 'tls12'; Invoke-WebRequest -Uri https://raw.githubusercontent.com/ansible/ansible/7963279fc2c3a8cfa6affb70307bac6fa669679c/examples/scripts/ConfigureRemotingForAnsible.ps1 -OutFile C:\Windows\Temp\ConfigureRemotingForAnsible.ps1}" | |
powershell.exe -ExecutionPolicy Bypass -File C:\Windows\Temp\ConfigureRemotingForAnsible.ps1 -SkipNetworkProfile -EnableCredSSP -ForceNewSSLCert -CertValidityDays 3650 |
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 exec -it awx_task_containerid bash | |
vi /var/lib/awx/.vault_pass.txt | |
vi /etc/ansible/ansible.cfg | |
# add /var/lib/awx/.vault_pass.txt to ansible.cfg | |
exit |
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 awx_task | |
docker rm awx_task | |
docker rmi ansible/awx_task:latest | |
docker stop awx_web | |
docker rm awx_web | |
docker rmi ansible/awx_web:latest | |
git pull | |
cd installer |
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
--- | |
# RUN: ansible-playbook -i localhost, substr.yml | |
- hosts: localhost | |
vars: | |
stuff: [email protected] | |
ansible_user: deekayen | |
tasks: |
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
cat > csr_details.txt <<-EOF | |
[req] | |
default_bits = 3072 | |
prompt = no | |
default_md = sha256 | |
req_extensions = req_ext | |
distinguished_name = dn | |
[ dn ] | |
C=US |
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
#Requires -Version 3.0 | |
# Configure a Windows host for remote management with Ansible | |
# ----------------------------------------------------------- | |
# | |
# This script checks the current WinRM (PS Remoting) configuration and makes | |
# the necessary changes to allow Ansible to connect, authenticate and | |
# execute PowerShell commands. | |
# | |
# All events are logged to the Windows EventLog, useful for unattended runs. |
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
# Set-ExecutionPolicy Unrestricted | |
$src1="\\processing\files" | |
$sendmail=$false | |
Get-ChildItem -path $src1 -Recurse -File | | |
Foreach-Object { | |
$dtdiff = New-TimeSpan ($_.CreationTime) $(Get-Date) | |
if ($dtdiff.minutes -gt 5) { | |
$strbody=$strbody +$_.fullname+ " - Last Modified Time: " +$_.LastWriteTime +"`r`n" |
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
from jenkins import Jenkins, JenkinsError, Job, Server | |
# http://jenkins-webapi.readthedocs.org/en/latest/ | |
from jira.client import JIRA | |
import re | |
import xml.etree.ElementTree as ET | |
import sys | |
import time | |
import requests | |
#Jenkins connection |
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
#!/bin/bash | |
# Removes the -dev and -prod files. | |
# /var/config/com/company/thing/drivers/config/thing-dev.properties | |
# /var/config/com/company/thing/drivers/config/thing-prod.properties | |
# /var/config/com/company/thing/drivers/config/thing-qa.properties | |
# /var/config/com/company/thing/drivers/config/database.properties | |
# Looks for "qa" in tomcat.conf on the JAVA_OPTS line: | |
# JAVA_OPTS="-Denvironment=qa" |
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
$file = "\\localhost\d$\Reports\Releases\$env:JOB_NAME\$env:BUILD_ID\tfsvcgscan.csv" | |
cd "C:\Program Files (x86)\VisualCodeGrepper" | |
Write-Host "Creating destination directory..." | |
New-Item -Force -ItemType Directory -path "\\localhost\d$\Reports\Releases\$env:JOB_NAME\$env:BUILD_ID" | |
Write-Host "Writing to \\localhost\d$\Reports\Releases\$env:JOB_NAME\$env:BUILD_ID\tfsvcgscan.csv" | |
Write-Host "Running VisualCodeGrepper.exe..." |