Skip to content

datasmid/ansible_codespace

Repository files navigation

ansible_role_web

A role to install a web server like httpd (aka Apache) or Nginx.

Requirements

Linux.

Role Variables

# defaults
desired_state: present  # or absent
package: nginx  # or httpd
service: nginx  # or httpd
webroot: /usr/share/nginx/html  # or /var/www/html

Dependencies

None.

Example Playbook

Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:

    - hosts: web
      roles:
         - role: playingfield.ansible_role_web

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published