RewriteEngine On
RewriteRule ^generator_zagadok\.php/.*$ https://site.ru/generator_zagadok.php [R=301,L]
RewriteRule ^generator_klichek\.php/.*$ https://site.ru/generator_klichek.php [R=301,L]
- hosts: all
become: yes
tasks:
- name: Install zabbix-agent on Ubuntu
apt:
name=zabbix-agent
state=latest
- name: Install zabbix release package
apt:
deb: https://repo.zabbix.com/zabbix/6.0/ubuntu/pool/mai...
- name: Change Server IP
lineinfile:
path: /etc/zabbix/zabbix_agentd.conf
regexp: 'Server=127.0.0.1'
line: "Server=127.0.0.1,51.250.80.248"
- name: Change Active Server IP
lineinfile:
path: /etc/zabbix/zabbix_agentd.conf
regexp: 'ServerActive=127.0.0.1'
line: "ServerActive=127.0.0.1,51.250.80.248"
when:
ansible_os_family == "Debian"
notify:
zabbix-agent systemd
- name: Install Zabbix-release CentOS 7
yum:
name: https://repo.zabbix.com/zabbix/6.0/rhel/7/x86_64/z...
- name: install zabbix-agent
yum: name=zabbix-agent state=latest
when: ansible_os_family == "RedHat"
notify:
zabbix-agent systemd
handlers:
- name: zabbix-agent systemd
systemd:
name: zabbix-agent.service
enabled: yes
state: started
sudo chmod 755 -R /var/www
sudo chmod 755 -R путь к папке www