1
0
mirror of https://github.com/eoli3n/dotfiles synced 2024-11-26 06:08:35 +01:00

updated README

This commit is contained in:
eoli3n 2020-05-14 00:23:03 +02:00
parent 7be564c46b
commit 5e37f42b17

@ -43,18 +43,30 @@ git clone --recursive https://github.com/*/dotfiles
```
##### 3. Configure inventory
``hosts`` file is defaultly gitignored.
Create inventory file from template.
```
cd dotfiles
cp hosts.template hosts
```
Add your hosts in section
- *cli*: install only cli tools
- *desktop*: install desktop environment
Define which user to configure with *ansible_user*.
You can't use **root** account for host in *desktop* section.
Add your hostnames in section:
- *cli*: install only cli tools
- *desktop*: install desktop environment
Define which user will get configurations with *ansible_user* var.
Users needs to be sudoers.
*desktop* hosts **can't use root**.
###### a. localhost run
```
[desktop]
localhost ansible_connection=local ansible_user=user
```
###### b. multiple hosts run
```
[cli]
server1 ansible_user=root
@ -63,12 +75,6 @@ host1 ansible_user=user
host2 ansible_user=user2
```
If you just want to use it on local host
```
[desktop]
localhost ansible_connection=local ansible_user=user
```
##### 4. Configure SSH
Push your SSH public key on all your ``users@hosts``