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

ansible: Gate updates

parent 1eaca78c
No related branches found
No related tags found
No related merge requests found
...@@ -61,9 +61,13 @@ ...@@ -61,9 +61,13 @@
ipv4: 192.168.5.35 ipv4: 192.168.5.35
- name: skund - name: skund
link: FC:AA:14:21:47:BF link: a8:a1:59:54:a9:af
ipv4: 192.168.5.4 ipv4: 192.168.5.4
- name: skund-old
link: FC:AA:14:21:47:BF
ipv4: 192.168.5.5
- name: x230 - name: x230
link: 3C:97:0E:9E:B5:92 link: 3C:97:0E:9E:B5:92
ipv4: 192.168.5.35 ipv4: 192.168.5.35
...@@ -89,22 +93,8 @@ ...@@ -89,22 +93,8 @@
- 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: no
state: absent
- name: IPv6 setup - name: IPv6 setup
copy: copy:
...@@ -286,6 +276,8 @@ ...@@ -286,6 +276,8 @@
apt: apt:
pkg: pkg:
- easy-rsa - easy-rsa
- gphoto2
- gphotofs
- name: "OpenVPN server user" - name: "OpenVPN server user"
user: user:
...@@ -308,6 +300,13 @@ ...@@ -308,6 +300,13 @@
notify: notify:
- restart postfix - restart postfix
- name: Install NGINX
apt:
pkg:
- nginx
- python3-certbot-nginx
- certbot
handlers: handlers:
- name: restart dhcpd - name: restart dhcpd
service: service:
......
- fail:
msg: possibly wrong server?
when: ansible_distribution != 'Debian'
- name: drop the default user
user:
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: no
state: absent
- name: Disable stupid 100 MB file swap
systemd:
name: dphys-swapfile
enabled: false
state: stopped
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