This commit is contained in:
Julien Palard 2020-06-22 09:36:42 +02:00
parent 20a1b19218
commit c0011351f3
4 changed files with 15 additions and 4 deletions

View File

@ -42,6 +42,7 @@
fr.pycon.org
pycon.fr
pycon.org
mail.afpy.org:993
# Python
bugs.python.org

View File

@ -8,6 +8,15 @@
hostname:
name: "{{ inventory_hostname_short }}"
- name: Configure FQDN
lineinfile:
path: /etc/hosts
regexp: '^127\.0\.0\.1'
line: "127.0.0.1 {{ inventory_hostname }} {{ inventory_hostname_short }} localhost"
owner: root
group: root
mode: 0644
- name: Setup nftables
include_role: name=nftables
tags: always

View File

@ -13,7 +13,7 @@
- name: Install certificate watcher
pip:
name: certificate_watcher
name: certificate_watcher==0.0.4
virtualenv_command: "/usr/bin/python3 -m venv"
virtualenv: "$HOME/.venv/"
become: true
@ -32,5 +32,5 @@
name: Watch certificates
minute: "12"
hour: "8"
job: '$HOME/.venv/bin/certificate_watcher -f ~/certificates | while read -r line; do printf "{{ prefix }} %s" "$line" | irk "{{ dest }}" - ; done'
job: '$HOME/.venv/bin/certificate_watcher -f ~/certificates | while read -r line; do printf "{{ prefix }} \%s" "$line" | irk "{{ dest }}" - ; done'
tags: [certificate_watcher]

View File

@ -3,6 +3,7 @@
- hosts: mdk
vars:
letsencrypt_email: julien@palard.fr
glowing_bear_version: 0.8.0
tasks:
- name: Setup weechat
include_role: name=weechat
@ -14,7 +15,7 @@
- name: Setup Glowing Bear
tags: weechat
unarchive:
src: https://github.com/glowing-bear/glowing-bear/archive/0.7.2.tar.gz
src: https://github.com/glowing-bear/glowing-bear/archive/{{ glowing_bear_version }}.tar.gz
remote_src: yes
dest: "/usr/local/src/"
@ -40,7 +41,7 @@
location /
{
root /usr/local/src/glowing-bear-0.7.2/;
root /usr/local/src/glowing-bear-{{ glowing_bear_version }}/;
index index.html;
}