Обновить playbook3_haproxy.yml
This commit is contained in:
@@ -16,16 +16,6 @@
|
|||||||
ansible.builtin.package:
|
ansible.builtin.package:
|
||||||
name: nginx
|
name: nginx
|
||||||
state: present
|
state: present
|
||||||
# update_cache: no # Не обновляем кэш автоматически
|
|
||||||
ignore_errors: true # Игнорируем ошибки если пакет не найден
|
|
||||||
tags:
|
|
||||||
- nginx
|
|
||||||
|
|
||||||
- name: Install Nginx if package cache is outdated
|
|
||||||
ansible.builtin.command:
|
|
||||||
cmd: apt-get install -y nginx
|
|
||||||
when: nginx_install is failed
|
|
||||||
register: nginx_install_cmd
|
|
||||||
tags:
|
tags:
|
||||||
- nginx
|
- nginx
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user