issmirnov.zap
Ansible Role: Zap
This project automates my servers using Ansible. This role installs zap.
Requirements
- On your local machine: You need Ansible installed.
- On the remote machine: You need
python
andpython-simplejson
for Ansible to work.
Role Variables
# Common settings:
zap_standalone: yes # installs zap with root access on port 80
zap_host: 127.0.0.1 # change to 0.0.0.0 for server installations
zap_port: 80 # change to 8927 if zap_standalone: no
zap_config: # default YAML config found at https://github.com/issmirnov/zap/blob/master/c.yml
# For macOS:
zap_config_location: /usr/local/etc/zap
# For Ubuntu:
zap_config_location: /etc/zap
zap_bin_path: /usr/local/bin
Example Playbook
- hosts: servers
vars:
zap_config:
e:
expand: example.com
a:
expand: apples
g:
expand: github.com
z:
expand: issmirnov/zap
roles:
- { role: issmirnov.zap }
If you're setting up a basic server, you can add this section to automatically install core Ansible dependencies.
- name: install python on bare server
remote_user: root
hosts: all
gather_facts: no
pre_tasks:
- name: 'install python2 and json support'
raw: sudo apt-get -y install python-simplejson
Notes
- This playbook will not remove deleted entries or handle conflicting DNS entries automatically. It is up to the user to manage these issues.
TODO
- Add an option for the user to run zap under
0.0.0.0
.zap_public
, used in configuration flags.
License
MIT
Author Information
Ivan Smirnov, http://ivansmirnov.name
Installa
ansible-galaxy install issmirnov.zap
Licenza
mit
Download
73
Proprietario
Lifelong learner that dreams in code.