This commit is contained in:
jaydee 2025-01-08 19:18:58 +01:00
parent 195e227c69
commit fbd878540e
4 changed files with 9 additions and 7 deletions

View File

@ -9,12 +9,12 @@
mode: '0700' mode: '0700'
- name: Download id_rsa - name: Download id_rsa
ansible.builtin.get_url: ansible.builtin.get_url:
url: http://192.168.77.101:48000/ssh/id_rsa url: http://192.168.77.238:48000/ssh/id_rsa
dest: ~/.ssh/id_rsa dest: ~/.ssh/id_rsa
mode: '0600' mode: '0600'
- name: Download id_rsa.pub - name: Download id_rsa.pub
ansible.builtin.get_url: ansible.builtin.get_url:
url: http://192.168.77.101:48000/ssh/id_rsa.pub url: http://192.168.77.238:48000/ssh/id_rsa.pub
dest: ~/.ssh/id_rsa.pub dest: ~/.ssh/id_rsa.pub
mode: '0600' mode: '0600'
- name: get remote file contents - name: get remote file contents

View File

@ -4,6 +4,8 @@
name: name:
- fail2ban - fail2ban
- sendmail - sendmail
#add line to /etc/hosts
#127.0.0.1 m-server localhost....
- name: Copy files - name: Copy files
copy: copy:
src: "{{ item }}" src: "{{ item }}"

View File

@ -3,8 +3,8 @@
ansible.builtin.lineinfile: ansible.builtin.lineinfile:
path: /etc/sysctl.conf path: /etc/sysctl.conf
regexp: "^Unet.ipv4.igmp_max_memberships.*" regexp: "^Unet.ipv4.igmp_max_memberships.*"
line: "net.ipv4.igmp_max_memberships = 75" line: "net.ipv4.igmp_max_memberships = 80"
- name: Restart agent - name: Restart agent
ansible.builtin.shell: echo 76 > /proc/sys/net/ipv4/igmp_max_memberships ansible.builtin.shell: echo 80 > /proc/sys/net/ipv4/igmp_max_memberships
notify: restart_matter_server notify: restart_matter_server
become: true become: true

View File

@ -23,9 +23,9 @@
# dest: /tmp/ # dest: /tmp/
- name: Install a .deb package from the internet11 - name: Install a .deb package from the internet11
ansible.builtin.apt: ansible.builtin.apt:
deb: https://repo.zabbix.com/zabbix/6.4/ubuntu-arm64/pool/main/z/zabbix-release/zabbix-release_6.4-1+ubuntu22.04_all.deb deb: https://repo.zabbix.com/zabbix/7.2/release/ubuntu/pool/main/z/zabbix-release/zabbix-release_latest_7.2+ubuntu24.04_all.deb
when: when:
- ansible_facts.architecture != "armv7l" and ( ansible_distribution == "Ubuntu" or ansible_distribution == "Linux Mint" ) - ansible_facts.architecture != "armv7l" and ( ansible_distribution == "Ubuntu1" or ansible_distribution == "Linux Mint" )
become: true become: true
- name: Install a .deb package from the internet2 - name: Install a .deb package from the internet2
ansible.builtin.apt: ansible.builtin.apt:
@ -48,7 +48,7 @@
- name: Install a .deb package from the internet4 - name: Install a .deb package from the internet4
ansible.builtin.apt: ansible.builtin.apt:
#deb: https://repo.zabbix.com/zabbix/6.4/debian/pool/main/z/zabbix-release/zabbix-release_6.4-1+debian12_all.deb #deb: https://repo.zabbix.com/zabbix/6.4/debian/pool/main/z/zabbix-release/zabbix-release_6.4-1+debian12_all.deb
deb: https://repo.zabbix.com/zabbix/7.0/debian/pool/main/z/zabbix-release/zabbix-release_7.0-1+debian12_all.deb deb: https://repo.zabbix.com/zabbix/7.2/debian/pool/main/z/zabbix-release/zabbix-release_7.2-1+debian12_all.deb
when: when:
- ansible_facts.architecture != "armv7l" and ansible_facts.architecture != "aarch64" and ansible_distribution == "Debian" and ansible_distribution_major_version == "12" - ansible_facts.architecture != "armv7l" and ansible_facts.architecture != "aarch64" and ansible_distribution == "Debian" and ansible_distribution_major_version == "12"
ignore_errors: true ignore_errors: true