This commit is contained in:
s0dy
2018-11-01 18:49:58 +01:00
parent 5c7a911f2d
commit fc7817c0b8
4 changed files with 406 additions and 42 deletions

View File

@ -20,28 +20,40 @@
enabled: yes
masked: no
- name: Systemd start httpd
systemd:
name: httpd
state: started
- name: Permissions httpd
- name: Permissions /etc/httpd
file:
path: /etc/httpd
owner: apache
group: apache
recurse: yes
- name: Permissions /var/www
file:
path: /var/www
owner: apache
group: apache
recurse: yes
#- htpasswd:
#path: /etc/apache2/.htpasswd
#name: hifive
#password: hifive
#owner: root
#group: www-data
#mode: 0640
#
#- name: Create virtual host file
#template:
#src: virtualhost.j2
#dest: /etc/apache2/sites-available/{{ domain }}.conf
#force: yes
- name: Install python-passlib
yum:
name: python-passlib
state: latest
- htpasswd:
path: /etc/httpd/passwords
name: hifive
password: hifive
owner: apache
group: apache
mode: 0640
- name: Create httpd.conf
template:
src: httpd.j2
dest: /etc/httpd/conf/httpd.conf
force: yes
- name: Systemd start httpd
systemd:
name: httpd
state: started