Beginning-Ansible-Concepts-.../chapter12/provision.yml
2022-04-23 08:57:49 +01:00

35 lines
559 B
YAML

---
- hosts: webservers
become: true
tasks:
- name: Build webservers
include_role:
name: webserver
tags:
- always
- name: Install Wordpress
include_role:
name: wordpress
tags:
- always
- hosts: databases
become: true
tasks:
- name: Build Databases
include_role:
name: database
tags:
- always
- hosts: load_balancers
become: true
tasks:
- name: Build load balancers
include_role:
name: load_balancer
tags:
- always