Skip to content

Instantly share code, notes, and snippets.

@naingyeminn
naingyeminn / delegation-test.yml
Last active December 12, 2018 12:18
Ansible Lab
---
- name: play - one
hosts: vm01.example.com
tasks:
- name: write content
copy:
content: "{{ ansible_nodename }}"
dest: /tmp/managed_host.txt
- name: get content
@naingyeminn
naingyeminn / vboxssh.sh
Created December 29, 2017 22:01
SSH Login to VBox Headless
#!/bin/bash
aname=$1
vm=$2
vmauth=$3
if [ -n "$4" ]; then
port=$4
else
port=22
fi