semaphore setup
This commit is contained in:
@@ -1,33 +0,0 @@
|
||||
- name: Download Zabbix Repo
|
||||
ansible.builtin.get_url:
|
||||
url: "https://repo.zabbix.com/zabbix/7.2/release/debian/pool/main/z/zabbix-release/zabbix-release_latest_7.2+debian12_all.deb"
|
||||
dest: "/tmp/zabbix-release_7.2.deb"
|
||||
|
||||
- name: Install Zabbix Repo package
|
||||
ansible.builtin.apt:
|
||||
deb: /tmp/zabbix-release_7.2.deb
|
||||
|
||||
- name: Install zabbix-agent2 and plugins
|
||||
ansible.builtin.apt:
|
||||
name:
|
||||
- zabbix-agent2
|
||||
- zabbix-agent2-plugin-*
|
||||
update_cache: yes
|
||||
|
||||
- name: Restart zabbix-agent2
|
||||
systemd:
|
||||
name: zabbix-agent2
|
||||
state: restarted
|
||||
|
||||
- name: Enable zabbix-agent2 to start on boot
|
||||
systemd:
|
||||
name: zabbix-agent2
|
||||
enabled: yes
|
||||
|
||||
- name: Update zabbix-agent2.conf
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/zabbix/zabbix_agent2.conf
|
||||
regexp: '^Server=.*'
|
||||
line: 'Server=192.168.0.59'
|
||||
state: present
|
||||
backup: yes
|
||||
@@ -6,6 +6,13 @@
|
||||
create: yes
|
||||
mode: '0644'
|
||||
|
||||
- name: Set up apt proxy configuration
|
||||
copy:
|
||||
content: |
|
||||
Acquire::http::Proxy "http://debcache:3142";
|
||||
dest: /etc/apt/apt.conf.d/00cacher
|
||||
mode: '0644'
|
||||
|
||||
- name: Update apt cache
|
||||
ansible.builtin.apt:
|
||||
update_cache: yes
|
||||
|
||||
Reference in New Issue
Block a user