Max username length = 32, thus ownership of docroot breaks
This commit is contained in:
		| @@ -114,17 +114,6 @@ | |||||||
|   loop: '{{ ensure_apache.firewall_list }}' |   loop: '{{ ensure_apache.firewall_list }}' | ||||||
|   loop_control: |   loop_control: | ||||||
|     label: '{{ item.service }} will be {{ item.state }}' |     label: '{{ item.service }} will be {{ item.state }}' | ||||||
| - name: 'ensure users' |  | ||||||
|   when: |  | ||||||
|     - ansible_system == 'Linux' |  | ||||||
|     - ensure_apache is defined |  | ||||||
|     - http_vhost is defined |  | ||||||
|     - http_vhost is iterable |  | ||||||
|   ansible.builtin.user: |  | ||||||
|     name: '{{ item.fqdn }}' |  | ||||||
|   loop: '{{ http_vhost }}' |  | ||||||
|   loop_control: |  | ||||||
|     label: '{{ item.fqdn }} will be ensured' |  | ||||||
| - name: 'base mod_md store' | - name: 'base mod_md store' | ||||||
|   when: |   when: | ||||||
|     - ansible_system == 'Linux' |     - ansible_system == 'Linux' | ||||||
| @@ -138,18 +127,6 @@ | |||||||
|     path: '/etc/httpd/md' |     path: '/etc/httpd/md' | ||||||
|     state: 'directory' |     state: 'directory' | ||||||
|     setype: 'httpd_var_lib_t' |     setype: 'httpd_var_lib_t' | ||||||
| - name: 'base vhost document root' |  | ||||||
|   when: |  | ||||||
|     - ansible_system == 'Linux' |  | ||||||
|     - ensure_apache is defined |  | ||||||
|     - http_vhost is defined |  | ||||||
|     - http_vhost is iterable |  | ||||||
|   ansible.builtin.file: |  | ||||||
|     group: 'root' |  | ||||||
|     owner: 'root' |  | ||||||
|     mode: '0775' |  | ||||||
|     path: '/srv/http' |  | ||||||
|     state: 'directory' |  | ||||||
| - name: 'ensure vhost document roots' | - name: 'ensure vhost document roots' | ||||||
|   when: |   when: | ||||||
|     - ansible_system == 'Linux' |     - ansible_system == 'Linux' | ||||||
| @@ -157,9 +134,6 @@ | |||||||
|     - http_vhost is defined |     - http_vhost is defined | ||||||
|     - http_vhost is iterable |     - http_vhost is iterable | ||||||
|   ansible.builtin.file: |   ansible.builtin.file: | ||||||
|     group: '{{ item.fqdn }}' |  | ||||||
|     owner: '{{ item.fqdn }}' |  | ||||||
|     mode: '2775' |  | ||||||
|     path: '/srv/http/{{ item.fqdn }}' |     path: '/srv/http/{{ item.fqdn }}' | ||||||
|     state: 'directory' |     state: 'directory' | ||||||
|     setype: 'httpd_sys_content_t' |     setype: 'httpd_sys_content_t' | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user