diff --git a/defaults/main.yml b/defaults/main.yml index fcd68ca..e17b576 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1,3 +1,6 @@ --- +# should we install weechat? +install_weechat: true + # version check for this role? submodules_versioncheck: true diff --git a/tasks/install-debian.yml b/tasks/install-debian.yml new file mode 100644 index 0000000..bfd3149 --- /dev/null +++ b/tasks/install-debian.yml @@ -0,0 +1,22 @@ +--- +- name: Add weechat repository gpg-key + become: true + apt_key: + keyserver: 'ha.pool.sks-keyservers.net' + id: '11E9DE8848F2B65222AA75B8D1820DB22A11534E' + state: present + +- name: add weechat repo + become: true + apt_repository: + repo: "deb https://weechat.org/{{ ansible_distribution|lower }} {{ ansible_distribution_release }} main" + state: present + update_cache: yes + +- name: install weechat and plugins + become: true + apt: + name: + - weechat-curses + - weechat-plugins + state: present diff --git a/tasks/main.yml b/tasks/main.yml index 183d982..0bf02d2 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -2,3 +2,5 @@ - include_tasks: versioncheck.yml when: submodules_versioncheck|bool +- include_tasks: "install-{{ ansible_os_version|lower }}.yml" + when: install_weechat | bool