Skip to content

Commit

Permalink
add config template variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mdsketch committed Nov 26, 2021
1 parent 0649067 commit c699191
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ teleport_control_systemd
```
Default `yes`. Controls if this role modifies the teleport service.

```
teleport_template_config
```
Default `yes`. Controls if this role modifies the teleport config file.

## Upgrading Teleport

When the role is run, it checks if the installed version matches the version specified in `teleport_version`. If different then it will download the latest version and install it.
Expand Down
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ backup_teleport_config: yes
teleport_config_template: "default_teleport.yaml.j2"
teleport_service_template: "default_teleport.service.j2"
teleport_control_systemd: yes
teleport_template_config: yes
# Default dont change
update_teleport: no
1 change: 1 addition & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
group: "root"
mode: 0600
backup: "{{ backup_teleport_config }}"
when: teleport_template_config
notify:
- Reload_Teleport

Expand Down

0 comments on commit c699191

Please sign in to comment.