|
|
@@ -0,0 +1,24 @@
|
|
|
+- name: configure webserver
|
|
|
+ hosts: servera.lab.example.com
|
|
|
+ tasks:
|
|
|
+ - name: include environment tasks
|
|
|
+ include_tasks: tasks/environment.yml
|
|
|
+ vars:
|
|
|
+ package: httpd
|
|
|
+ service: httpd
|
|
|
+ - name: include firewall tasks
|
|
|
+ include_tasks: tasks/firewall.yml
|
|
|
+ vars:
|
|
|
+ firewall_pkg: firewalld
|
|
|
+ firewall_svc: firewalld
|
|
|
+ rule:
|
|
|
+ - http
|
|
|
+ - https
|
|
|
+ - name: include placeholder tasks
|
|
|
+ include_tasks: tasks/placeholder.yml
|
|
|
+ vars:
|
|
|
+ file: /var/www/html/index.html
|
|
|
+- name: test play file and set the variable
|
|
|
+ import_playbook: plays/test.yml
|
|
|
+ vars:
|
|
|
+ url: 'http://servera.lab.example.com'
|