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

Mistyped variable name

parent 4c435c5a
...@@ -16,35 +16,43 @@ ...@@ -16,35 +16,43 @@
# from https://gist.github.com/mattiaslundberg/ba214a35060d3c8603e9b1ec8627d349 # from https://gist.github.com/mattiaslundberg/ba214a35060d3c8603e9b1ec8627d349
- name: Install snapd - 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 become: true
package: package:
name: snapd name: snapd
state: present state: present
- name: Prepare snapd for certbot installation - 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 become: true
command: snap install core command: snap install core
- name: Refresh core snap before installing certbot - 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 become: true
command: snap refresh core command: snap refresh core
- name: Install certbot snap - 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 become: true
command: snap install --classic certbot command: snap install --classic certbot
- name: Link certbot snap installation - 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 become: true
file: file:
src: /snap/bin/certbot src: /snap/bin/certbot
dest: /usr/bin/certbot dest: /usr/bin/certbot
state: link 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 - name: Create letsencrypt certificate
when: funkwhale_nginx_managed and funkwhale_letsencrypt_enabled and not funkwhale_letsencrypt_skip_cert when: funkwhale_nginx_managed and funkwhale_letsencrypt_enabled and not funkwhale_letsencrypt_skip_cert
become: true become: true
......
--- ---
- name: "Install system packages for Debian host" - name: "Install system packages for Debian host"
become: true become: true
when: ansible_facts['ansible_family'] == 'Debian' when: ansible_facts['ansible_os_family'] == 'Debian'
package: package:
name: name:
- "python3" - "python3"
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
- name: "Install system packages for FreeBSD host" - name: "Install system packages for FreeBSD host"
become: true become: true
when: ansible_facts['ansible_family'] == 'FreeBSD' when: ansible_facts['ansible_os_family'] == 'FreeBSD'
package: package:
name: name:
- "python3" - "python3"
......
--- ---
- name: "Install redis on a Debian host" - name: "Install redis on a Debian host"
become: true become: true
when: funkwhale_redis_managed and ansible_facts['ansible_family'] == 'Debian' when: funkwhale_redis_managed and ansible_facts['ansible_os_family'] == 'Debian'
package: package:
name: name:
- redis-server - redis-server
- name: "Install redis on a FreeBSD host" - name: "Install redis on a FreeBSD host"
become: true become: true
when: funkwhale_redis_managed and ansible_facts['ansible_family'] == 'FreeBSD' when: funkwhale_redis_managed and ansible_facts['ansible_os_family'] == 'FreeBSD'
package: package:
name: name:
- redis - 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