1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
# httpd ~~ roles/httpd_pre/main.yml # prerequisites for `httpd` role --- - name: ensure httpd.d directory exists file: path: /etc/httpd.d state: directory owner: "{{ user_root }}" group: "{{ group_root }}" mode: 0644 - name: ensure htpasswd directory exists file: path: /var/www/htpasswd state: directory owner: "www" group: "www" mode: 0700