Unverified Commit 9a0b8a7c authored by TheRealDannyBoy's avatar TheRealDannyBoy
Browse files

Mistyped variable name

parent 4c435c5a
......@@ -16,35 +16,43 @@
# from https://gist.github.com/mattiaslundberg/ba214a35060d3c8603e9b1ec8627d349
- name: Install snapd
when: funkwhale_nginx_managed and funkwhale_letsencrypt_enabled
when: funkwhale_nginx_managed and funkwhale_letsencrypt_enabled and ansible_facts['ansible_os'] == 'Linux'
become: true
package:
name: snapd
state: present
- name: Prepare snapd for certbot installation
when: funkwhale_nginx_managed and funkwhale_letsencrypt_enabled
when: funkwhale_nginx_managed and funkwhale_letsencrypt_enabled and ansible_facts['ansible_os'] == 'Linux'
become: true
command: snap install core
- name: Refresh core snap before installing certbot
when: funkwhale_nginx_managed and funkwhale_letsencrypt_enabled
when: funkwhale_nginx_managed and funkwhale_letsencrypt_enabled and ansible_facts['ansible_os'] == 'Linux'
become: true
command: snap refresh core
- name: Install certbot snap
when: funkwhale_nginx_managed and funkwhale_letsencrypt_enabled
when: funkwhale_nginx_managed and funkwhale_letsencrypt_enabled and ansible_facts['ansible_os'] == 'Linux'
become: true
command: snap install --classic certbot
- name: Link certbot snap installation
when: funkwhale_nginx_managed and funkwhale_letsencrypt_enabled
when: funkwhale_nginx_managed and funkwhale_letsencrypt_enabled and ansible_facts['ansible_os'] == 'Linux'
become: true
file:
src: /snap/bin/certbot
dest: /usr/bin/certbot
state: link
- name: Install certbot and certbot NGINX plugin from packages
when: funkwhale_nginx_managed and funkwhale_letsencrypt_enabled and ansible_facts['ansible_os'] == 'FreeBSD'
become: true
package:
name:
- "py37-certbot"
- "py37-certbot-nginx"
- name: Create letsencrypt certificate
when: funkwhale_nginx_managed and funkwhale_letsencrypt_enabled and not funkwhale_letsencrypt_skip_cert
become: true
......
---
- name: "Install system packages for Debian host"
become: true
when: ansible_facts['ansible_family'] == 'Debian'
when: ansible_facts['ansible_os_family'] == 'Debian'
package:
name:
- "python3"
......@@ -29,7 +29,7 @@
- name: "Install system packages for FreeBSD host"
become: true
when: ansible_facts['ansible_family'] == 'FreeBSD'
when: ansible_facts['ansible_os_family'] == 'FreeBSD'
package:
name:
- "python3"
......
---
- name: "Install redis on a Debian host"
become: true
when: funkwhale_redis_managed and ansible_facts['ansible_family'] == 'Debian'
when: funkwhale_redis_managed and ansible_facts['ansible_os_family'] == 'Debian'
package:
name:
- redis-server
- name: "Install redis on a FreeBSD host"
become: true
when: funkwhale_redis_managed and ansible_facts['ansible_family'] == 'FreeBSD'
when: funkwhale_redis_managed and ansible_facts['ansible_os_family'] == 'FreeBSD'
package:
name:
- redis
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment