pushing updates
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user