Explorar el Código

Switch from playbook vars to role defaults

By using role defauts, we can have inventory variables
which overide the defaults.
pull/6/head
Slavi Pantaleev hace 8 años
padre
commit
b046052aed
Se han modificado 3 ficheros con 2 adiciones y 5 borrados
  1. +1
    -1
      README.md
  2. +1
    -1
      roles/matrix-server/defaults/main.yml
  3. +0
    -3
      setup.yml

+ 1
- 1
README.md Ver fichero

@@ -84,7 +84,7 @@ You can follow these steps:

- copy the sample configuration file (`cp examples/host-vars.yml inventory/matrix.<your-domain>/vars.yml`)

- edit the configuration file (`inventory/matrix.<your-domain>/vars.yml`) to your liking
- edit the configuration file (`inventory/matrix.<your-domain>/vars.yml`) to your liking. You may also take a look at `roles/matrix-server/defaults.main.yml` and see if there's something you'd like to copy over and override in your `vars.yml` configuration file.

- copy the sample inventory hosts file (`cp examples/hosts inventory/hosts`)



vars/vars.yml → roles/matrix-server/defaults/main.yml Ver fichero

@@ -44,4 +44,4 @@ matrix_services_restart_cron_time_definition: "15 4 3 * *"
matrix_coturn_turn_udp_min_port: 49152
matrix_coturn_turn_udp_max_port: 49172

matrix_coturn_turn_external_ip_address: "{{ ansible_host }}"
matrix_coturn_turn_external_ip_address: "{{ ansible_host }}"

+ 0
- 3
setup.yml Ver fichero

@@ -3,8 +3,5 @@
hosts: "{{ target if target is defined else 'matrix-servers' }}"
become: true

vars_files:
- vars/vars.yml

roles:
- matrix-server

Cargando…
Cancelar
Guardar