first commit
This commit is contained in:
32
tasks/install.yml
Normal file
32
tasks/install.yml
Normal file
@@ -0,0 +1,32 @@
|
||||
---
|
||||
- name: "apache2 | apt update cache"
|
||||
apt:
|
||||
update_cache: yes
|
||||
cache_valid_time: 86400
|
||||
tags:
|
||||
- apache2
|
||||
- apache2_install
|
||||
|
||||
- name: "apache2 | install packages"
|
||||
apt:
|
||||
name: "{{ item }}"
|
||||
update_cache: true
|
||||
state: present
|
||||
with_items:
|
||||
- apache2
|
||||
- apache2-bin
|
||||
- apache2-data
|
||||
- apache2-utils
|
||||
register: is_apache2
|
||||
tags:
|
||||
- apache2
|
||||
- apache2_install
|
||||
|
||||
- name: "apache2 | remove default vhost"
|
||||
file:
|
||||
path: "/etc/apache2/sites-enabled/000-default.conf"
|
||||
state: absent
|
||||
tags:
|
||||
- apache2
|
||||
- apache2_install
|
||||
|
||||
Reference in New Issue
Block a user