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 test.json | |
{ | |
"name1":"aaa", | |
"name1":"bbb", | |
"name2":"aaa", | |
"name3":"aaa", | |
"name4":"aaa" | |
} |
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
PS C:\Users\Administrator> Get-ChildItem env: | |
Name Value | |
---- ----- | |
ALLUSERSPROFILE C:\ProgramData | |
APPDATA C:\Users\Administrator\AppData\Roaming | |
CommonProgramFiles C:\Program Files\Common Files | |
CommonProgramFiles(x86) C:\Program Files (x86)\Common Files | |
CommonProgramW6432 C:\Program Files\Common Files | |
COMPUTERNAME WIN-I7D9V42FUF8 |
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)/Users/miyabi/tmp/win% ansible -m setup -i inventory win | |
win2012r2 | success >> { | |
"ansible_facts": { | |
"ansible_distribution": "Microsoft Windows NT 6.3.9600.0", | |
"ansible_distribution_version": "6.3.9600.0", | |
"ansible_fqdn": "WIN-I7D9V42FUF8", | |
"ansible_hostname": "WIN-I7D9V42FUF8", | |
"ansible_interfaces": [ | |
{ | |
"default_gateway": "10.0.2.2", |
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 | |
echo "" > /etc/udev/rules.d/80-pci-order_net.rules | |
for dir in /sys/class/net/* | |
do | |
[ -e $dir/device ] && { | |
addr=$(readlink $dir| grep pci|tr "\/" " " | awk '{print $5}') | |
driver=$(ethtool -i $(basename $dir) | grep driver) |
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
- hosts: all | |
gather_facts: false | |
vars: | |
results: | |
- public_ip: "xxx.xxx.xxx.xx1" | |
- public_ip: "xxx.xxx.xxx.xx2" | |
- public_ip: "xxx.xxx.xxx.xx3" | |
- public_ip: "xxx.xxx.xxx.xx4" | |
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
list: | |
- key: foo1 | |
value: bar1 | |
- key: foo2 | |
value: bar2 | |
- key: foo1 | |
value: bar3 | |
- key: foo3 | |
value: bar4 |
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
list: | |
- foo1: bar1 | |
- foo2: bar2 | |
- foo1: bar3 | |
- foo3: bar4 | |
↓↓↓↓↓↓↓↓ | |
list: | |
- foo1: bar1 |
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
#!/usr/bin/env python | |
from jinja2 import Environment, FileSystemLoader | |
import yaml | |
vars={} | |
var_files=[ | |
‘some_vars.yml', | |
] | |
for var_file in var_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
[logging] | |
default = FILE:/var/log/krb5libs.log | |
kdc = FILE:/var/log/krb5kdc.log | |
admin_server = FILE:/var/log/kadmind.log | |
[libdefaults] | |
default_realm = {{ default_realm|upper() }} | |
dns_lookup_realm = false | |
dns_lookup_kdc = false | |
ticket_lifetime = 24h |
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
[logging] | |
default = FILE:/var/log/krb5libs.log | |
kdc = FILE:/var/log/krb5kdc.log | |
admin_server = FILE:/var/log/kadmind.log | |
[libdefaults] | |
default_realm = EXAMPLE.COM | |
dns_lookup_realm = false | |
dns_lookup_kdc = false | |
ticket_lifetime = 24h |