/Ansible

Ansible playbook

Primary LanguageJinja

Ansible

in this repository we are going to use ansible to manage or install packge or services .

1- Timezone: this Folder correct Time Zone of your linux Server(Tehran TimeZone) . for your Enviroment Change inventory file with your IP Servers And Execute :

#ansible-playbook roles/tasks/playbook.yml -i inventory

timezonepic

2- Zabbix: with this project you can install zabbix based on centos distro . If You have Centos7 , Zabbix 5 Will be installed And If you have centos8 , Zabbix 6 will be Installed .

note: as mentioned in zabbix docs ,you can not install zabbix 6 on centos7 because centos7 unsupported after 2024

ansible-zabbix

3 Install zabbix proxy with ansible:

os:centos8
change your inventory file and then execute:
#ansible-playbook site.yml

zabbixproxy-withansible

4 create hostgroup in zabbix with ansible

os :ubuntu 20.04
ansible version : 2.12
python version: 3.9

note: for using hostgroup module , the version of ansible is important ! this module does not work with ansible 2.9 or before

zabbix-hostgroup

5 create host in zabbix with ansible

just run ansible-playbook site.yml

https://github.com/amirajoodani/Ansible/blob/main/zabbix-host/zabbix-host.JPG