Skip to content
Snippets Groups Projects
Commit 2f2c6a27 authored by Vladimír Štill's avatar Vladimír Štill
Browse files

ansible: Update IO

parent a900338c
No related branches found
No related tags found
No related merge requests found
...@@ -22,74 +22,31 @@ ...@@ -22,74 +22,31 @@
- import_role: - import_role:
name: vstill_deb name: vstill_deb
- name: drop the default user - import_role:
user: name: raspbian
name: pi
state: absent
- name: enable sshd (it is names just ssh in Raspberry OS)
systemd:
enabled: true
state: started
name: ssh
- name: reset to use of predictable names for ethernet nics
file:
path: /etc/systemd/network/99-default.link
follow: false
state: absent
- name: Disk utils
apt:
pkg:
- lvm2
- gdisk
- name: Misc - name: Misc
apt: apt:
pkg: pkg:
- easy-rsa - easy-rsa
- name: "OpenVPN server user" # - name: "OpenVPN server user"
user: # user:
name: openvpn # name: openvpn
home: /var/empty # home: /var/empty
shell: /usr/sbin/nologin # shell: /usr/sbin/nologin
system: true # system: true
#
- name: postfix # - name: Extra system tools
apt: # apt:
pkg: # pkg:
- postfix # - iotop
- libsasl2-modules # - bwm-ng
notify: restart postfix # - python3-gpiozero
#
- name: postfix config # - name: Install NGINX
copy: # apt:
src: gate/postfix/main.cf # pkg:
dest: /etc/postfix/main.cf # - nginx
notify:
- restart postfix
- name: Extra system tools
apt:
pkg:
- iotop
- bwm-ng
- python3-gpiozero
- name: Install NGINX
apt:
pkg:
- nginx
handlers:
- name: restart postfix
systemd:
name: postfix
enabled: true
state: restarted
notify:
- test msmtp
# vim: shiftwidth=2 tabstop=2 softtabstop=2 # vim: shiftwidth=2 tabstop=2 softtabstop=2
... ...
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment