Update base deploy to incluyde syncthing.

master
josiah 4 years ago
parent cbd41c1686
commit 0f653bbbdb

@ -34,6 +34,17 @@
regexp: '^#?PermitRootLogin'
line: 'PermitRootLogin no'
- name: Add syncthing release signing key.
apt_key:
url: https://syncthing.net/release-key.txt
state: present
- name: Add syncthing apt repo
apt_repository:
repo: deb https://apt.syncthing.net/ syncthing stable
filename: syncthing
state: present
- name: Update apt
apt: update_cache=yes
@ -44,3 +55,9 @@
service:
name: sshd.service
state: restarted
- name: Enable and start syncthing
systemd:
name: "{{ syncthing_personal_service }}"
state: started
enabled: yes

@ -1,3 +1,4 @@
sys_packages: [ 'curl', 'vim', 'git', 'fail2ban', 'mosh', 'emacs', 'build-essential','dnsutils' ]
sys_packages: [ 'curl', 'vim', 'git', 'fail2ban', 'mosh', 'emacs', 'build-essential','dnsutils', 'syncthing' ]
create_user: josiah
copy_local_key: "{{ lookup('file', lookup('env','HOME') + '/.ssh/home-net.pub') }}"
syncthing_personal_service: syncthing@josiah

Loading…
Cancel
Save