Remove variables.tf

This commit is contained in:
s0dy
2018-11-01 14:37:02 +01:00
parent 31a38b9043
commit 4601f095c8
8 changed files with 240 additions and 119 deletions

View File

@ -0,0 +1,77 @@
---
- hosts: hifive
become: yes
become_user: root
tasks:
- name: Yum update
yum:
name: '*'
state: latest
- name: Install httpd
yum:
name: httpd
state: latest
- name: Systemd enable httpd
systemd:
name: httpd
enabled: yes
masked: no
- name: Systemd start httpd
systemd:
name: httpd
state: started
#- name: Permissions apache2
#file:
#path: /etc/apache2
#owner: www-data
#group: www-data
#recurse: yes
#
#- name: Permissions www
#file:
#path: /var/www
#owner: www-data
#group: www-data
#recurse: yes
#
#- name: Start service httpd, if not started
#service:
#name: apache2
#state: started
#
#- name: Enable service apache2, and not touch the state
#service:
#name: apache2
#enabled: yes
#
#- name: Enable mod_rewrite
#apache2_module:
#name: rewrite
#state: present
#
#- 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: a2ensite {{ domain }}
#command: a2ensite {{ domain }}
#
#- name: Reload service apache2
#service:
#name: apache2
#state: reloaded