Skip to content

chrissuarez/ansible_update_reboot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

ansible_update_reboot

Update and reboot Ubuntu hosts when needed

Commands

ssh-keygen -t ed25519 -C "[email protected]"
cat ~/.ssh/id_ed25519.pub >> ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keys


Test access with: ssh chris@localhost

sudo crontab -e

30 3 * * * /usr/bin/ansible-pull -U https://github.com/chrissuarez/ansible_update_reboot.git update_and_reboot.yml

Create the file called "chris" in "/etc/sudoers.d" with the following line:
chris ALL=(ALL) NOPASSWD: ALL

About

Update and reboot Ubuntu hosts when needed

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published