Our Ansible files
Find a file
David Rotermund 74ccc9c832 Update
2024-04-19 15:52:13 +02:00
config Update 2024-04-19 15:52:13 +02:00
machines Update 2024-04-18 19:12:43 +02:00
mirror_repos Update 2024-04-19 15:52:13 +02:00
yaml_sub Update 2024-04-19 03:10:49 +02:00
backup_389ds.yaml Add files via upload 2024-04-12 17:38:02 +02:00
backup_check.yaml Update 2024-04-18 17:10:00 +02:00
backup_code.yaml Update 2024-04-18 16:41:10 +02:00
backup_cups.yaml Add files via upload 2024-04-16 20:06:17 +02:00
backup_dns.yaml Update 2024-04-18 17:22:04 +02:00
backup_docker_volumes.yaml Add files via upload 2024-04-04 13:53:58 +02:00
backup_portainer.yaml Update 2024-04-18 17:16:09 +02:00
backup_semaphore.yaml Update 2024-04-18 17:13:31 +02:00
base_update.yaml Update 2024-04-19 15:52:13 +02:00
convert_old_pre_ansible_machines.yaml Add files via upload 2024-03-29 02:04:57 +01:00
hourly_update.yaml Update 2024-04-19 15:52:13 +02:00
install_checkmk.yaml Add files via upload 2024-04-16 10:10:11 +02:00
install_checkmk_client_phase_a.yaml Add files via upload 2024-04-16 10:10:11 +02:00
install_checkmk_client_phase_b.yaml Add files via upload 2024-04-16 20:06:17 +02:00
install_cluster_node.yaml Update 2024-04-18 19:12:43 +02:00
install_code.yaml Add files via upload 2024-04-17 00:50:20 +02:00
install_cups.yaml Add files via upload 2024-04-16 20:06:17 +02:00
install_desktop_packages.yaml Add files via upload 2024-04-12 17:38:02 +02:00
install_docker.yaml Add files via upload 2024-03-29 20:39:15 +01:00
install_gitlab.yaml Add files via upload 2024-04-16 10:10:11 +02:00
install_ldap_389ds.yaml Add files via upload 2024-04-16 10:10:11 +02:00
install_pi_hole.yaml Add files via upload 2024-04-16 10:10:11 +02:00
install_portainer.yaml Update 2024-04-18 17:10:00 +02:00
install_repo.yaml Upload 2024-04-19 02:25:55 +02:00
install_semaphore.yaml Update 2024-04-18 19:12:43 +02:00
install_slurm.yaml Update 2024-04-18 16:41:10 +02:00
ldap_fix_group_permissions.lif Add files via upload 2024-04-16 10:10:11 +02:00
LICENSE Initial commit 2024-03-29 01:43:28 +01:00
mount_points.yaml Update 2024-04-18 10:48:34 +02:00
prepare_debian_installation_ansible.sh Update 2024-04-17 23:02:51 +02:00
README.md Add files via upload 2024-04-16 20:06:17 +02:00
scan_workstations_nmap.sh Update 2024-04-18 10:48:34 +02:00
set_cluster_crontab.yaml Update 2024-04-18 19:12:43 +02:00
update_cups.yaml Add files via upload 2024-04-16 20:06:17 +02:00
update_ldap.yaml Add files via upload 2024-04-16 10:10:11 +02: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