finnished lemmy.yml rewrite

This commit is contained in:
AreaOfZero 2023-06-27 06:51:00 +00:00
parent 4d9cd973ce
commit e0369a5afc

View file

@ -22,7 +22,7 @@
tasks: tasks:
- name: install dependencies - name: install dependencies
apt: dnf:
state: latest state: latest
update_cache: true update_cache: true
pkg: pkg:
@ -35,9 +35,6 @@
- "python3-virtualenv" - "python3-virtualenv"
- "python3-setuptools" - "python3-setuptools"
- name: copy docker config
copy: src='../files/docker-daemon.json' dest='/etc/docker/daemon.json' mode='0644'
- name: request initial letsencrypt certificate - name: request initial letsencrypt certificate
command: certbot certonly --nginx --agree-tos --cert-name '{{ domain }}' -d '{{ domain }}' -m '{{ letsencrypt_contact_email }}' command: certbot certonly --nginx --agree-tos --cert-name '{{ domain }}' -d '{{ domain }}' -m '{{ letsencrypt_contact_email }}'
args: args:
@ -116,9 +113,9 @@
vars: vars:
postgres_password: "{{ lookup('password', 'inventory/host_vars/{{domain}}/passwords/postgres chars=ascii_letters,digits') }}" postgres_password: "{{ lookup('password', 'inventory/host_vars/{{domain}}/passwords/postgres chars=ascii_letters,digits') }}"
- name: enable and start docker service - name: enable and start podman service
systemd: systemd:
name: docker name: podman.socket
enabled: yes enabled: yes
state: started state: started