Ansible уведомление в slack

---
- name: deploy mezzanine on vagrant
  hosts: web
  vars_files:
    - secrets.yml
  pre_tasks:
      - name: update the apt cache
        apt: update_cache=yes
  roles:
    - role: mezzanine
      database_host: "{{ hostvars.db.ansivle_eth1.ipv4.address }}"
      live_hostname: 192.168.33.10.xip.io
      domains:
          - 192.168.33.10.xip.io
          - www.192.168.33.10.xip.io
  post_tasks:
    - name: notify Slack channel
      local_action: >
           slack
           domain=acme.slack.com
           token={{ stack_token }}
           msg="web server {{ inventory_hostname }} done"

 

Ansible

Related Articles

0 Comment

Leave a Comment

Ваш адрес email не будет опубликован.