Skip to content

Commit c699191

Browse files
committed
add config template variable
1 parent 0649067 commit c699191

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,11 @@ teleport_control_systemd
7373
```
7474
Default `yes`. Controls if this role modifies the teleport service.
7575

76+
```
77+
teleport_template_config
78+
```
79+
Default `yes`. Controls if this role modifies the teleport config file.
80+
7681
## Upgrading Teleport
7782

7883
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.

defaults/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@ backup_teleport_config: yes
1212
teleport_config_template: "default_teleport.yaml.j2"
1313
teleport_service_template: "default_teleport.service.j2"
1414
teleport_control_systemd: yes
15+
teleport_template_config: yes
1516
# Default dont change
1617
update_teleport: no

tasks/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
group: "root"
7171
mode: 0600
7272
backup: "{{ backup_teleport_config }}"
73+
when: teleport_template_config
7374
notify:
7475
- Reload_Teleport
7576

0 commit comments

Comments
 (0)