teaching-webterm/ansible/tasks/setup_sshwifty.yml

31 lines
612 B
YAML
Raw Normal View History

2022-05-26 15:31:39 +00:00
---
- name: Install required system packages
ansible.builtin.apt:
name:
- vim
state: latest
update_cache: true
- name: Deploy SSHwifty configuration
template:
src: templates/sshwifty.conf.j2
dest: /etc/sshwifty.conf
- name: Create SSHwifty directory
file:
path: /var/lib/sshwifty
state: directory
- name: Deploy SSHwifty configuration
template:
src: templates/docker-compose.yml.j2
dest: /var/lib/sshwifty/docker-compose.yml
- name: Run SSHwifty
community.docker.docker_compose:
project_src: /var/lib/sshwifty
recreate: smart
state: present
#