pushing updates

This commit is contained in:
2026-07-08 13:16:59 -05:00
parent 589462e6d0
commit 1ba3d10e3f
4 changed files with 33 additions and 8 deletions
+9 -4
View File
@@ -10,15 +10,20 @@ ansible-galaxy collection install -r requirements.yml
# Bootstrap SSH key to each host (one-time, before Ansible)
ssh-copy-id westfarn@10.0.0.77
ssh-copy-id westfarn@10.0.0.176
# First-time only: passwordless sudo on each new host (before first provision)
ssh -t westfarn@10.0.0.176 # repeat for each host IP
# on the host:
echo 'westfarn ALL=(ALL) NOPASSWD:ALL' | sudo tee /etc/sudoers.d/westfarn
sudo chmod 440 /etc/sudoers.d/westfarn
exit
# Test connectivity to one host
ansible adama -m ping
# Provision one host (dry run first)
./scripts/provision.sh adama --check --ask-become-pass
./scripts/provision.sh adama --ask-become-pass # first run; sudo password once
# Later runs (after common role sets passwordless sudo)
./scripts/provision.sh adama --check
./scripts/provision.sh adama
# Provision all hosts