aboutsummaryrefslogtreecommitdiffstats
path: root/roles/httpd_pre/tasks/main.yml
blob: 1667df40f3a4fe0b6fcb32141c3acb0e855bfa7a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
---

- name: create httpd directory
  ansible.builtin.file:
    path: "{{ httpd_pre__configuration_dir }}"
    state: directory
    owner: 0
    group: 0
    mode: "0644"

- name: create passwords directory
  ansible.builtin.file:
    path: "{{ httpd_pre__passwords_dir }}"
    state: directory
    owner: "{{ httpd_pre__user }}"
    group: "{{ httpd_pre__group }}"
    mode: "0700"

- name: create sites directory
  ansible.builtin.file:
    path: "{{ httpd_pre__sites_dir }}"
    state: directory
    owner: 0
    group: 0
    mode: "0755"

# - name: create ssl directories
#   ansible.builtin.file:
#     path: "{{ httpd_pre__chroot_dir }}/{{ item | dirname }}"
#     recurse: true
#     state: directory
#     mode: "0644"
#   loop_control:
#     label: "{{ httpd_pre__chroot_dir }}/{{ item | dirname }}"
#   loop: "{{ httpd_pre__ssl_files }}"
#
# - name: copy ssl files
#   ansible.builtin.copy:
#     src: "{{ item }}"
#     dest: "{{ httpd_pre__chroot_dir }}/{{ item }}"
#     remote_src: true
#     mode: "0444"
#     owner: root
#     group: bin
#   loop: "{{ httpd_pre__ssl_files }}"
remember that computers suck.