Last active
January 3, 2019 04:08
-
-
Save hkdanalyser/700876920c7905854e39bd527b961afc to your computer and use it in GitHub Desktop.
Configuration for Lae role
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: netbox | |
become: yes | |
vars: | |
netbox_stable: true | |
netbox_database_socket: "{{ postgresql_unix_socket_directories[0] }}" | |
netbox_superuser_password: netbox | |
netbox_superuser_email: it@it.com | |
netbox_user: netbox | |
netbox_group: netbox | |
netbox_home: /opt/netbox | |
netbox_releases_path: "{{ netbox_home }}/releases" | |
netbox_git_repo_path: "{{ netbox_releases_path }}/git-repo" | |
netbox_git_deploy_path: "{{ netbox_releases_path }}/git-deploy" | |
netbox_stable_path: "{{ netbox_releases_path }}/netbox-{{ netbox_stable_version }}" | |
netbox_current_path: "{{ netbox_home }}/current" | |
netbox_shared_path: "{{ netbox_home }}/shared" | |
netbox_application_log: "file:{{ netbox_shared_path }}/application.log" | |
netbox_requests_log: "file:{{ netbox_shared_path }}/requests.log" | |
netbox_socket: "0.0.0.0:80" | |
netbox_config: | |
ALLOWED_HOSTS: | |
- localhost | |
- 127.0.0.1 | |
- "{{ inventory_hostname }}" | |
MEDIA_ROOT: "{{ netbox_shared_path }}/media" | |
REPORTS_ROOT: "{{ netbox_shared_path }}/reports" | |
netbox_keep_uwsgi_updated: true | |
postgresql_version: "10" | |
postgresql_packages: | |
- postgresql10 | |
- postgresql10-server | |
- postgresql10-contrib | |
- postgresql10-libs | |
postgresql_users: | |
- name: netbox | |
role_attr_flags: CREATEDB,NOSUPERUSER | |
pre_tasks: | |
yum: | |
name: https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm | |
- name: Enable/Install PostgreSQL Repo | |
yum: | |
name: https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/pgdg-redhat10-10-2.noarch.rpm | |
roles: | |
- geerlingguy.postgresql | |
- lae.netbox |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment