ansible.fftdf.supernode/roles/21-install-oitc/tasks/main.yml
2023-02-06 23:13:32 +01:00

27 lines
726 B
YAML

- name: Repo Key Import
ansible.builtin.shell: curl https://packages.openitcockpit.io/repokey.txt | sudo apt-key add
- name: Add specified repository into sources list
ansible.builtin.apt_repository:
repo: deb https://packages.openitcockpit.io/openitcockpit-agent/deb/stable deb main
state: present
- name: Install Wireguard
apt: name={{ item }} state=latest update_cache=yes
with_items:
- openitcockpit-agent
- name: Copy Config File
ansible.builtin.template:
src: oitc.ini.j2
dest: /etc/openitcockpit-agent/config.ini
owner: root
group: root
mode: '0775'
- name: Restart service httpd, in all cases
ansible.builtin.service:
name: openitcockpit-agent
state: restarted