starting tasks for jitsimeet
This commit is contained in:
0
roles/webserver/tasks/install_apache.yml
Normal file
0
roles/webserver/tasks/install_apache.yml
Normal file
4
roles/webserver/tasks/install_nginx.yml
Normal file
4
roles/webserver/tasks/install_nginx.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
- name: webserver | nginx | installing nginx
|
||||
package:
|
||||
name: nginx
|
||||
state: latest
|
||||
12
roles/webserver/tasks/main.yml
Normal file
12
roles/webserver/tasks/main.yml
Normal file
@@ -0,0 +1,12 @@
|
||||
# Load distro-specific variables
|
||||
- include_vars: "{{ ansible_distribution }}.yml"
|
||||
tags: always
|
||||
|
||||
- block:
|
||||
- debug:
|
||||
msg: Debug
|
||||
# install software
|
||||
- import_tasks: install_apache.yml
|
||||
when: "{{ apache }}" is true
|
||||
- import_tasks: install_nginx.yml
|
||||
when: "{{ nginx }}" is true
|
||||
Reference in New Issue
Block a user