Our Ansible files
backup_jobs | ||
config | ||
machines | ||
mirror_repos | ||
update_jobs | ||
yaml_sub | ||
base_update.yaml | ||
convert_old_pre_ansible_machines.yaml | ||
install_checkmk.yaml | ||
install_checkmk_client_phase_a.yaml | ||
install_checkmk_client_phase_b.yaml | ||
install_cluster_node.yaml | ||
install_code.yaml | ||
install_cups.yaml | ||
install_desktop_packages.yaml | ||
install_docker.yaml | ||
install_gitlab.yaml | ||
install_ldap_389ds.yaml | ||
install_pi_hole.yaml | ||
install_portainer.yaml | ||
install_repo.yaml | ||
install_semaphore.yaml | ||
install_slurm.yaml | ||
install_wiki.yaml | ||
ldap_fix_group_permissions.lif | ||
LICENSE | ||
mount_points.yaml | ||
prepare_debian_installation_ansible.sh | ||
README.md | ||
scan_workstations_nmap.sh | ||
set_cluster_crontab.yaml | ||
update_cups.yaml | ||
update_ldap.yaml |
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