From ca559a518683fe79a7a5858ba33e5255d27b3bd8 Mon Sep 17 00:00:00 2001 From: eoli3n Date: Sun, 1 Dec 2019 16:32:57 +0100 Subject: [PATCH] improve readme --- README.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 32aa915..137d83d 100644 --- a/README.md +++ b/README.md @@ -36,23 +36,23 @@ Please check ``vagrant/*/README.md`` and ``docker/*/README.md`` ** Use carefully** backup your home before using ! Ansible will backup any existing conf file before overriding. -# 1° Fork Me! +### 1° Fork Me! -# 2° Clone your repo on a personnal host +### 2° Clone your repo on a personnal host ``` git clone --recursive https://github.com/[your_repo]/dotfiles cd dotfiles ``` -# 3° Generate ssh keys +### 3° Generate ssh keys ``` ssh-keygen -t rsa ``` -# 4° Replace your ssh key in ``authorized_keys`` role +### 4° Replace your ssh key in ``authorized_keys`` role **!!! Use as is, you will add my SSH key in your authorized_keys !!!** ``` cp ~/.ssh/id_rsa.pub dotfiles/roles/authorized_keys/id_rsa.pub ``` -# 5° Generate hosts file with your managed hosts +### 5° Generate hosts file with your managed hosts ``hosts`` file is defaultly gitignored. ``` cd dotfiles @@ -74,7 +74,7 @@ host2 ansible_user=user2 ``` Remove useless groups and hosts -# 6° Copy your SSH keys on all nodes : node per node if password differ between users +### 6° Copy your SSH keys on all nodes : node per node if password differ between users It add your public ssh keys on hosts ``` ansible-playbook install.yml -t init_ssh -l host1 -K @@ -82,7 +82,7 @@ ansible-playbook install.yml -t init_ssh -l host2 -K ansible-playbook install.yml -t init_ssh -l host3 -K ``` -# 7° Run ansible-playbook +### 7° Run ansible-playbook For runs on hosts configured with root user You can use without providing extra passwords @@ -96,7 +96,7 @@ You need to use -K to ask sudo password, and -l to limit to that host ansible-playbook install.yml -l host1 -K ``` -# Extra commands +### Extra commands To list tasks and tags ``` ansible-playbook install.yml --list-tasks @@ -110,7 +110,7 @@ To dry-run and print files diff on all declared hosts ansible-playbook install.yml -l host1 -CDK ``` -# Local run +### Local run Add localhost line and user in right hosts file section ``` [server] @@ -118,7 +118,7 @@ Add localhost line and user in right hosts file section localhost ansible_connection=local ansible_user=user [desktop] ``` -# then +``` ansible-playbook install.yml -l localhost -K ``` @@ -184,7 +184,7 @@ It could be run as ``root``. - screen - authorized_keys -# Previously +## Previously * [i3-gaps Dark Solarized](https://github.com/eoli3n/dotfiles/tree/zsh-agnoster-solarized)