Skip to content

Commit

Permalink
Rework configuration playbook
Browse files Browse the repository at this point in the history
  • Loading branch information
astrojuanlu committed Aug 5, 2023
1 parent d6d34c5 commit f3a1f04
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions playbooks/configure.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,25 @@
---
- name: Docker installed
hosts: webservers
roles:
- geerlingguy.docker

- name: SSL certificate installed
hosts: webservers
pre_tasks:
# https://github.com/geerlingguy/ansible-role-certbot/issues/21
- name: Update apt
ansible.builtin.apt:
update_cache: true
become: true
vars:
certbot_auto_renew_user: root
certbot_create_if_missing: true
certbot_create_method: standalone
certbot_admin_email: "{{ certbot_email }}"
certbot_certs:
- domains:
- "{{ domain }}"
roles:
- role: geerlingguy.certbot
when: skip_ssl|default(false)|bool != true
- geerlingguy.certbot
tags:
- ssl # TODO: Find a better name?

- name: Docker installed
hosts: webservers
roles:
- geerlingguy.docker

0 comments on commit f3a1f04

Please sign in to comment.