Skip to content

Instantly share code, notes, and snippets.

View Jhansi-Rajput's full-sized avatar

Jhansi-Rajput

View GitHub Profile
@Jhansi-Rajput
Jhansi-Rajput / terraform-ssh-remote-exec.tf
Created April 24, 2021 15:13 — forked from toshimaru/terraform-ssh-remote-exec.tf
How to connect to server via SSH and use remote-exec provisioner.
resource "digitalocean_droplet" "web" {
image = "ubuntu-16-04-x64"
name = "web-1"
region = "sgp1"
size = "512mb"
ssh_keys = [12345]
connection {
type = "ssh"
user = "root"
@Jhansi-Rajput
Jhansi-Rajput / playbook_centos_install_docker.yaml
Created October 6, 2020 15:31 — forked from yonglai/playbook_centos_install_docker.yaml
An Ansible playbook to install docker-ce on Centos
---
- name: Install docker
gather_facts: No
hosts: default
tasks:
- name: Install yum utils
yum:
name: yum-utils
state: latest