--- - 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"
0 Comment