added packages/selinux to fedmag
This commit is contained in:
parent
1b0055b6e7
commit
2458210124
1 changed files with 21 additions and 0 deletions
|
@ -24,3 +24,24 @@
|
||||||
- include: "{{ tasks }}/cloud_setup_basic.yml"
|
- include: "{{ tasks }}/cloud_setup_basic.yml"
|
||||||
- name: set hostname (required by some services, at least postfix need it)
|
- name: set hostname (required by some services, at least postfix need it)
|
||||||
shell: "hostname {{inventory_hostname}}"
|
shell: "hostname {{inventory_hostname}}"
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- name: add packages
|
||||||
|
yum: state=present name={{ item }}
|
||||||
|
with_items:
|
||||||
|
- httpd
|
||||||
|
- php
|
||||||
|
- php-mysql
|
||||||
|
- mariadb-server
|
||||||
|
- mariadb
|
||||||
|
- mod_ssl
|
||||||
|
- php-mcrypt
|
||||||
|
- wget
|
||||||
|
- unzip
|
||||||
|
- subscription-manager
|
||||||
|
|
||||||
|
- name: set the SELinux policy for the Wordpress web dir
|
||||||
|
command: semanage fcontext -a -t httpd_sys_content_t "/var/www/html/(*)"
|
||||||
|
|
||||||
|
- name: Restorecon on /var/www/html dir
|
||||||
|
command: restorcon -R /var/www/html
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue