generated from GamingChaos/ansible-repository-template
Compare commits
No commits in common. "57fef3ca81dc282c93d6b70a174ab48d948f6897" and "dee62d3d8abb211c4641ddbac776df6475e913ef" have entirely different histories.
57fef3ca81
...
dee62d3d8a
@ -1,18 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
groupadd -g 3003 ansible
|
||||
useradd -g 3003 -u 994 -m -r ansible
|
||||
usermod -aG ansible vst
|
||||
|
||||
mkdir /home/ansible/.ssh
|
||||
cat << EOL > /home/ansible/.ssh/authorized_keys
|
||||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMuxBznuFNFztZt1MbuDRdww7LdmWq0dpK7F3Is/gMPO ansible@semaphore
|
||||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMqPCol1eSm4vrAYK0XEaq05n6BAQqQVJOAWhRItfZRS vst@yuuki
|
||||
EOL
|
||||
|
||||
chown -R ansible: /home/ansible/.ssh
|
||||
chmod 400 /home/ansible/.ssh/authorized_keys
|
||||
|
||||
cat << EOL > /etc/sudoers.d/ansible
|
||||
%ansible ALL = (ALL) NOPASSWD: ALL
|
||||
EOL
|
||||
@ -1,6 +1,6 @@
|
||||
---
|
||||
# source: https://www.jeffgeerling.com/blog/2022/ansible-playbook-upgrade-ubuntudebian-servers-and-reboot-if-needed
|
||||
- hosts: ubuntu
|
||||
- hosts: ubuntu:proxmox
|
||||
gather_facts: yes
|
||||
become: yes
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user