ansible-homelab/cloud-init/debian-mail.yml

38 lines
1.0 KiB
YAML
Raw Normal View History

2023-06-02 04:27:56 +02:00
#cloud-config
users:
- name: debian
ssh_authorized_keys:
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIOmibToJQ8JZpSFLH3482oxvpD56QAfu4ndoofbew5t jas@si.local
sudo: 'ALL=(ALL) NOPASSWD: ALL'
shell: /bin/bash
lock_passwd: true
apt:
sources_list: |
deb http://deb.debian.org/debian $RELEASE main
deb http://deb.debian.org/debian $RELEASE-updates main
deb http://deb.debian.org/debian-security/ $RELEASE-security main
deb http://deb.debian.org/debian $RELEASE-backports
package_update: true
package_upgrade: true
packages:
- debian-keyring
- debsig-verify
- notmuch
- offlineimap3
- pass
- python3-dev
- ssh
- wget
rsyslog:
configs:
- content: "*.* @10.0.0.41:514"
filename: 99-forward.conf
remotes:
moonshadow: 10.0.0.41
timezone: America/Chicago
2023-06-04 16:17:58 +02:00
runcmd:
- [ git, clone, https://gist.github.com/90c3b2fcc9d70cf06e9f3660e0d15a48.git, /tmp/vimrc ]
- [ cp, /tmp/vimrc/.vimrc, /root/.vimrc ]
- [ cp, /tmp/vimrc/.vimrc, /home/debian/.vimrc ]
- [ chown, debian:debian, /home/debian/.vimrc ]