27 lines
726 B
YAML
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
|