mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Merge pull request #405 from iiab/release-7.1
sync from iiab:release-7.1
This commit is contained in:
commit
57d5014693
1 changed files with 8 additions and 10 deletions
|
@ -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'
|
||||
|
@ -100,20 +100,18 @@
|
|||
- name: 'Create group: admin'
|
||||
group:
|
||||
name: admin
|
||||
state: present
|
||||
|
||||
- name: Add user {{ apache_user }} (from variable apache_user) to group admin
|
||||
- name: Add user {{ apache_user }} (from variable apache_user) to groups admin,shadow
|
||||
user:
|
||||
name: "{{ apache_user }}"
|
||||
groups: admin
|
||||
state: present
|
||||
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'
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue