--- # tasks file for tco.code - name: "[Code] - prereq" ansible.builtin.package: name: python-lxml state: present - name: "[Code] - repository" yum_repository: baseurl: https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-rpm name: Collabora Code repo description: Collabora Code repo gpgkey: "https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-centos7/repodata/repomd.xml.key" - name: "[Code] - install packages" ansible.builtin.package: name: - coolwsd - CODE-brand state: present - name: "[Code] - disable ssl" community.general.xml: path: /etc/coolwsd/coolwsd.xml xpath: /config/ssl/enable value: "false" notify: restart coolwsd - name: "[Code] - enable ssl termination" community.general.xml: path: /etc/coolwsd/coolwsd.xml xpath: /config/ssl/termination value: "true" notify: restart coolwsd - name: "[Code] - enable client " community.general.xml: path: /etc/coolwsd/coolwsd.xml xpath: /config/net/post_allow add_children: "{{ code_clients }}" notify: restart coolwsd - name: "[Code] - deploy apache conf" block: - ansible.builtin.template: src: code_apache.conf.inc dest: /etc/httpd/conf.d/ - ansible.builtin.lineinfile: path: /etc/httpd/conf.d/{{ apache_server_name }}.conf line: include /etc/httpd/conf.d/code_apache.conf.inc insertafter: "ServerName" notify: restart apache - name: "[Code] - enable and start service" ansible.builtin.service: name: coolwsd enabled: true state: started