Update README.md
This commit is contained in:
parent
9fddb8b730
commit
e59a0fb551
1 changed files with 31 additions and 0 deletions
31
README.md
31
README.md
|
@ -1,2 +1,33 @@
|
||||||
# neuro_ansible
|
# neuro_ansible
|
||||||
Our Ansible files
|
Our Ansible files
|
||||||
|
|
||||||
|
# How make a computer ready for ansible
|
||||||
|
|
||||||
|
```
|
||||||
|
dnf -y install ansible mc net-tools openssh-server openssh-clients passwdqc cracklib-dicts shadow-utils
|
||||||
|
|
||||||
|
systemctl enable sshd
|
||||||
|
systemctl start sshd
|
||||||
|
|
||||||
|
useradd -b /specialusers/ ansibleuser
|
||||||
|
passwd_value="PUT_A_PASSWORD_HERE"
|
||||||
|
echo ansibleuser:$passwd_value | chpasswd
|
||||||
|
echo "ansibleuser ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/ansible
|
||||||
|
```
|
||||||
|
|
||||||
|
# How to make the server ready
|
||||||
|
|
||||||
|
Once:
|
||||||
|
```
|
||||||
|
dnf -y install ansible mc net-tools openssh-server openssh-clients passwdqc cracklib-dicts shadow-utils sshpass
|
||||||
|
|
||||||
|
ssh-keygen
|
||||||
|
```
|
||||||
|
|
||||||
|
And then for every computer:
|
||||||
|
|
||||||
|
```
|
||||||
|
passwd_value="PUT_A_PASSWORD_HERE"
|
||||||
|
sshpass -p "$passwd_value" ssh-copy-id -o "StrictHostKeyChecking accept-new" ansibleuser@COMPUTERNAME
|
||||||
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue