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:
parent
0a274b4168
commit
1322bf6367
1 changed files with 6 additions and 6 deletions
|
@ -3,7 +3,7 @@
|
||||||
#name: [u'apache2', u'php{{ php_version }}', u'php{{ php_version }}-curl'] # FAILS ('u' for Unicode strings)
|
#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', 'php{{ php_version }}', 'php{{ php_version }}-curl'] # WORKS?
|
||||||
name:
|
name:
|
||||||
- apache2
|
- "{{ apache_service }}" # apache2 on Debuntu
|
||||||
- "php{{ php_version }}"
|
- "php{{ php_version }}"
|
||||||
- "php{{ php_version }}-curl"
|
- "php{{ php_version }}-curl"
|
||||||
state: present
|
state: present
|
||||||
|
@ -14,7 +14,7 @@
|
||||||
#name: [u'apache2', u'php'] # FAILS ('u' for Unicode strings)
|
#name: [u'apache2', u'php'] # FAILS ('u' for Unicode strings)
|
||||||
#name: ['apache2', 'php'] # WORKS
|
#name: ['apache2', 'php'] # WORKS
|
||||||
name:
|
name:
|
||||||
- apache2
|
- "{{ apache_service }}" # apache2 on Debuntu
|
||||||
- php
|
- php
|
||||||
state: present
|
state: present
|
||||||
when: is_ubuntu | bool
|
when: is_ubuntu | bool
|
||||||
|
@ -92,7 +92,7 @@
|
||||||
- name: Create Apache's pid dir /var/run/{{ apache_user }}
|
- name: Create Apache's pid dir /var/run/{{ apache_user }}
|
||||||
file:
|
file:
|
||||||
state: directory
|
state: directory
|
||||||
path: "/var/run/{{ apache_user }}"
|
path: "/var/run/{{ apache_user }}" # www-data on Debuntu
|
||||||
#owner: root
|
#owner: root
|
||||||
#group: root
|
#group: root
|
||||||
#mode: '0755'
|
#mode: '0755'
|
||||||
|
@ -103,15 +103,15 @@
|
||||||
|
|
||||||
- name: Add user {{ apache_user }} (from variable apache_user) to groups admin,shadow
|
- name: Add user {{ apache_user }} (from variable apache_user) to groups admin,shadow
|
||||||
user:
|
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)
|
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
|
createhome: no
|
||||||
|
|
||||||
- name: Create Apache dir /var/log/{{ apache_service }} ({{ apache_user }}:{{ apache_user }})
|
- name: Create Apache dir /var/log/{{ apache_service }} ({{ apache_user }}:{{ apache_user }})
|
||||||
file:
|
file:
|
||||||
state: directory
|
state: directory
|
||||||
path: "/var/log/{{ apache_service }}"
|
path: "/var/log/{{ apache_service }}" # apache2 on Debuntu
|
||||||
owner: "{{ apache_user }}"
|
owner: "{{ apache_user }}" # www-data on Debuntu
|
||||||
group: "{{ apache_user }}"
|
group: "{{ apache_user }}"
|
||||||
#mode: '0755'
|
#mode: '0755'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue