mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2025-02-03 06:58:46 +00:00
lala
This commit is contained in:
parent
195e227c69
commit
fbd878540e
@ -9,12 +9,12 @@
|
||||
mode: '0700'
|
||||
- name: Download id_rsa
|
||||
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
|
||||
mode: '0600'
|
||||
- name: Download id_rsa.pub
|
||||
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
|
||||
mode: '0600'
|
||||
- name: get remote file contents
|
||||
|
@ -4,6 +4,8 @@
|
||||
name:
|
||||
- fail2ban
|
||||
- sendmail
|
||||
#add line to /etc/hosts
|
||||
#127.0.0.1 m-server localhost....
|
||||
- name: Copy files
|
||||
copy:
|
||||
src: "{{ item }}"
|
||||
|
@ -3,8 +3,8 @@
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/sysctl.conf
|
||||
regexp: "^Unet.ipv4.igmp_max_memberships.*"
|
||||
line: "net.ipv4.igmp_max_memberships = 75"
|
||||
line: "net.ipv4.igmp_max_memberships = 80"
|
||||
- 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
|
||||
become: true
|
||||
|
@ -23,9 +23,9 @@
|
||||
# dest: /tmp/
|
||||
- name: Install a .deb package from the internet11
|
||||
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:
|
||||
- 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
|
||||
- name: Install a .deb package from the internet2
|
||||
ansible.builtin.apt:
|
||||
@ -48,7 +48,7 @@
|
||||
- name: Install a .deb package from the internet4
|
||||
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/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:
|
||||
- ansible_facts.architecture != "armv7l" and ansible_facts.architecture != "aarch64" and ansible_distribution == "Debian" and ansible_distribution_major_version == "12"
|
||||
ignore_errors: true
|
||||
|
Loading…
x
Reference in New Issue
Block a user