Первый коммит с ансибле скриптами для установки telemt.
This commit is contained in:
commit
ca14120c0e
10 changed files with 90 additions and 0 deletions
15
roles/install/tasks/install.yml
Normal file
15
roles/install/tasks/install.yml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
---
|
||||
- name: gen hex
|
||||
set_fact:
|
||||
random_hex: "{{ query('community.general.random_string', upper=false, lower=false, override_special=hex_chars, numbers=false, length=32) }}"
|
||||
vars:
|
||||
hex_chars: "0123456789ABCDEF"
|
||||
|
||||
- name: run install script
|
||||
shell:
|
||||
cmd: /tmp/install.sh -d {{ tls_domain }} -s {{ random_hex[0] }} -p {{ port }} -l 2
|
||||
register: install_result
|
||||
|
||||
- name: output msg
|
||||
debug:
|
||||
msg: "{{ install_result.stdout.split('\n') }}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue