1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-12 19:22:24 +00:00

Explain vars in httpd/tasks/install.yml

This commit is contained in:
A Holt 2020-06-04 15:30:40 -04:00 committed by GitHub
parent 0a274b4168
commit 1322bf6367
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,7 +3,7 @@
#name: [u'apache2', u'php{{ php_version }}', u'php{{ php_version }}-curl'] # FAILS ('u' for Unicode strings)
#name: ['apache2', 'php{{ php_version }}', 'php{{ php_version }}-curl'] # WORKS?
name:
- apache2
- "{{ apache_service }}" # apache2 on Debuntu
- "php{{ php_version }}"
- "php{{ php_version }}-curl"
state: present
@ -14,7 +14,7 @@
#name: [u'apache2', u'php'] # FAILS ('u' for Unicode strings)
#name: ['apache2', 'php'] # WORKS
name:
- apache2
- "{{ apache_service }}" # apache2 on Debuntu
- php
state: present
when: is_ubuntu | bool
@ -92,7 +92,7 @@
- name: Create Apache's pid dir /var/run/{{ apache_user }}
file:
state: directory
path: "/var/run/{{ apache_user }}"
path: "/var/run/{{ apache_user }}" # www-data on Debuntu
#owner: root
#group: root
#mode: '0755'
@ -103,15 +103,15 @@
- name: Add user {{ apache_user }} (from variable apache_user) to groups admin,shadow
user:
name: "{{ apache_user }}"
name: "{{ apache_user }}" # www-data on Debuntu
groups: admin,shadow # 2020-06-04: shadow nec for Admin Console login (this line had been clobbering user www-data's membership in group shadow, as set earlier by nginx/tasks/install.yml, SEE #2431)
createhome: no
- name: Create Apache dir /var/log/{{ apache_service }} ({{ apache_user }}:{{ apache_user }})
file:
state: directory
path: "/var/log/{{ apache_service }}"
owner: "{{ apache_user }}"
path: "/var/log/{{ apache_service }}" # apache2 on Debuntu
owner: "{{ apache_user }}" # www-data on Debuntu
group: "{{ apache_user }}"
#mode: '0755'