1
0
Fork 0
mirror of https://github.com/eoli3n/dotfiles synced 2024-05-12 18:46:05 +02:00

improve readme

This commit is contained in:
eoli3n 2019-12-01 16:35:24 +01:00
parent ca559a5186
commit 21c9efa926

View File

@ -1,9 +1,6 @@
# i3-gaps Acid Dark
| | |
|-----------|:-------------:|
| Master | [![Build Status](https://travis-ci.org/eoli3n/dotfiles.svg?branch=master)](https://travis-ci.org/eoli3n/dotfiles) |
| Dev | [![Build Status](https://travis-ci.org/eoli3n/dotfiles.svg?branch=dev)](https://travis-ci.org/eoli3n/dotfiles) |
[![Build Status](https://travis-ci.org/eoli3n/dotfiles.svg?branch=master)](https://travis-ci.org/eoli3n/dotfiles)
**i3-gaps zsh pureprompt polybar**
@ -36,23 +33,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 +71,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 +79,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 +93,7 @@ You need to use -K to ask sudo password, and -l <host> 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 +107,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]