ansible.fftdf.supernode/roles/21-install-oitc/tasks/main.yml

27 lines
726 B
YAML
Raw Normal View History

2023-02-06 22:13:32 +00:00
- 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