mirror of
https://github.com/eoli3n/dotfiles
synced 2024-05-13 11:06:05 +02:00
improve readme
This commit is contained in:
parent
5130e8c7a5
commit
ca559a5186
22
README.md
22
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 <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 +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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue