aboutsummaryrefslogblamecommitdiffstats
path: root/roles/httpd_pre/tasks/main.yml
blob: 1667df40f3a4fe0b6fcb32141c3acb0e855bfa7a (plain) (tree)
























                                              



















                                                               
---

- 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.