aboutsummaryrefslogblamecommitdiffstats
path: root/roles/znc/tasks/main.yml
blob: df9a092ef7e4dcab2bf8310e601a8ba759201262 (plain) (tree)
1
2
3
4
5
6
7
8
9

   
                   
                          



                        
                        



                           
                       





                                       
                               






                              
                          


                    
---

- name: install znc
  ansible.builtin.package:
    name: znc
    state: present

- name: create znc group
  ansible.builtin.group:
    name: "{{ znc_group }}"
    state: present

- name: create znc user
  ansible.builtin.user:
    name: "{{ znc_user }}"
    group: "{{ znc_group }}"
    system: true
    create_home: true

- name: generate and enable znc service
  ansible.builtin.include_role:
    name: rc
  vars:
    rc_cmd: /usr/local/bin/znc
    rc_user: "{{ znc_user }}"
    rc_name: znc

- name: enable and start znc
  ansible.builtin.service:
    name: znc
    state: restarted
    enabled: true
remember that computers suck.