Our Ansible files
Find a file
2024-03-29 02:05:52 +01:00
inventory Add files via upload 2024-03-29 01:52:25 +01:00
yaml_sub Add files via upload 2024-03-29 01:55:48 +01:00
base_package_install.yaml Add files via upload 2024-03-29 01:56:55 +01:00
convert_old_pre_ansible_machines.yaml Add files via upload 2024-03-29 02:04:57 +01:00
hourly_update.yaml Add files via upload 2024-03-29 01:57:37 +01:00
LICENSE Initial commit 2024-03-29 01:43:28 +01:00
mount_points.yaml Add files via upload 2024-03-29 01:59:09 +01:00
parameters_for_new_computer.yaml Add files via upload 2024-03-29 02:05:52 +01:00
README.md Update README.md 2024-03-29 02:02:57 +01:00

neuro_ansible

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