1 #####################################
2 ### someone"s ansible provisioner ###
3 #####################################
4 # Part of: https://git.somenet.org/root/pub/somesible.git
5 # 2017-2024 by someone <someone@somenet.org>
8 - name: install inspircd
15 ignore_errors: "{{ignore_online_errors | bool}}"
18 - name: create inspircd user's homedir
20 path: "/var/lib/inspircd"
27 - name: add irc user to group ssl-cert,letsencrypt
30 groups: "ssl-cert,letsencrypt"
36 - name: create inspircd config dir
45 - name: copy irc server config files
48 dest: "/etc/inspircd/{{item.path}}"
53 - "{{lookup('env','PWD')}}/host_files/{{inventory_hostname}}/{{role_name}}/inspircd/"
54 - "{{lookup('env','PWD')}}/group_files/{{group_files_group}}/{{role_name}}/inspircd/"
55 - "{{lookup('env','PWD')}}/group_files/all/{{role_name}}/inspircd/"
57 when: item.state == "file"
58 notify: reload inspircd.service
61 - name: copy inspircd.service to /etc/systemd/system/
64 dest: "/etc/systemd/system/inspircd.service"
69 - "{{lookup('env','PWD')}}/host_files/{{inventory_hostname}}/{{role_name}}/inspircd.service"
70 - "{{lookup('env','PWD')}}/group_files/{{group_files_group}}/{{role_name}}/inspircd.service"
71 - "{{lookup('env','PWD')}}/group_files/all/{{role_name}}/inspircd.service"
72 - "default/inspircd.service"
73 notify: restart inspircd.service
76 - name: enable and start inspircd.service
77 include_role: name="base/systemd/enable-and-start"
79 service_name: inspircd.service