ЕП
Size: a a a
ЕП
ЕП
AK
AK
AK
[defaults]
log_path = ./ansible.log
ЕП
AK
ЕП
AK
ЕП
ЕП
ЕП
- hosts: '{{ hosts }}'
remote_user: '{{ user }}'
tasks:
- block:
- name: deploy to frontends
copy: src='{{ src }}' dest='{{ dest }}'
become: true
- name: Nginx
apt: pkg=nginx state=installed update_cache=true
rescue:
- name: notify failure to Slack
local_action:
module: slack
token: "XXXXXXXXXXXXXXXXX"
msg: "Task task_name failed on {{ ansible_hostname }}"
# channel: devops
ЕП
ЕП
AK
ЕП
ЕП
AK
ЕП
AK