From b4c2883ff20e0bd3928531282a95874dd5016a9e Mon Sep 17 00:00:00 2001 From: eoli3n Date: Tue, 7 Jan 2020 15:59:37 +0100 Subject: [PATCH] try dynamic weechat conf --- roles/weechat/tasks/main.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/roles/weechat/tasks/main.yml b/roles/weechat/tasks/main.yml index 2e58480..5bf1f95 100644 --- a/roles/weechat/tasks/main.yml +++ b/roles/weechat/tasks/main.yml @@ -11,6 +11,18 @@ msg: "Please active fifo with '/fifo' in weechat" when: not stat_fifo.stat.exists +- name: Register nickname + pause: + prompt: "Enter your IRC nickname:" + echo: no + register: nickname + +- name: Register password + pause: + prompt: "Enter your IRC password:" + echo: no + register: password + - name: Theme weechat shell: echo {{item}} >~/.weechat/weechat_fifo args: @@ -41,6 +53,14 @@ - '*/set weechat.look.read_marker none' - '*/set env TERM screen-256color' - '*/set weechat.look.buffer_time_format \${color:252}%H\${color:245}%M\${color:240}%S' + - '*/server add freenode chat.freenode.net' + - '*/server add freenode irc.oftc.net' + - '*/set irc.server.freenode.nicks "{{ nickname }}"' + - '*/set irc.server.freenode.autoconnect on' + - '*/set irc.server.freenode.addresses "chat.freenode.net/7000"' + - '*/set irc.server.freenode.ssl on' + - '*/set irc.server.freenode.sasl_username "{{ nickname }}"' + - '*/set irc.server.freenode.sasl_password "{{ password }}"' - '*/save' - '*/reload' when: stat_fifo.stat.exists