Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Example ansible playbook for configuring etcd
---
- hosts: all
remote_user: centos
vars_files:
- variables.yaml
tasks:
- name: install etcd
yum:
name: etcd
state: latest
- name: Add etcd config
template:
src: etcd.service.j2
dest: /usr/lib/systemd/system/etcd.service
mode: 0644
- name: run etcd
service:
name: etcd
state: restarted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.