2024-09-19 19:40:58 +02:00
|
|
|
---
|
|
|
|
- hosts: all
|
|
|
|
|
|
|
|
become: true
|
|
|
|
tasks:
|
|
|
|
- name: install updates except sql
|
|
|
|
yum:
|
|
|
|
name: '*'
|
|
|
|
state: latest
|
|
|
|
update_cache: yes
|
|
|
|
exclude:
|
|
|
|
- mysql-server
|
|
|
|
- mysql
|
|
|
|
- mariadb-server
|
|
|
|
- mariadb
|
2024-09-19 19:55:23 +02:00
|
|
|
when: ansible_os_family == "RedHat"
|
|
|
|
- name: Wait until HTTP status is 200 of ISPmanager
|
2024-09-19 19:55:56 +02:00
|
|
|
uri:
|
|
|
|
url: 'https://127.0.0.1:1500/ispmgr'
|
|
|
|
return_content: no
|
|
|
|
validate_certs: no
|
|
|
|
status_code:
|
|
|
|
- 200
|
|
|
|
until: uri_output.status == 200
|
|
|
|
retries: 5 # Retries for 24 * 5 seconds = 120 seconds = 2 minutes
|
|
|
|
delay: 5 # Every 5 seconds
|
|
|
|
register: uri_output
|
|
|
|
- name: Update custom script from git
|
|
|
|
ansible.builtin.git:
|
|
|
|
repo: https://dimahu:Dima4026@git.sandros.hu/sandros/dimaserverconfigurer.git
|
|
|
|
dest: /root/dimaserverconfigurer
|
|
|
|
single_branch: yes
|
|
|
|
version: master
|