[ADD] тег env: ~/node.env из инвентаря
This commit is contained in:
@@ -4,15 +4,18 @@ all:
|
|||||||
scanner_branch: feature/scanner-v2
|
scanner_branch: feature/scanner-v2
|
||||||
gitea_host: monitor.yss.su
|
gitea_host: monitor.yss.su
|
||||||
gitea_port: 2222
|
gitea_port: 2222
|
||||||
|
server_ip: 11.0.0.100
|
||||||
hosts:
|
hosts:
|
||||||
node102:
|
node102:
|
||||||
ansible_host: 192.168.1.45
|
ansible_host: 192.168.1.45
|
||||||
|
sdr_id: 1
|
||||||
static_ip: 11.0.0.102
|
static_ip: 11.0.0.102
|
||||||
sdr_serial: a32868dc35944247
|
sdr_serial: a32868dc35944247
|
||||||
x: -0.68
|
x: -0.68
|
||||||
y: -1.28
|
y: -1.28
|
||||||
node104:
|
node104:
|
||||||
ansible_host: 192.168.1.50
|
ansible_host: 192.168.1.50
|
||||||
|
sdr_id: 2
|
||||||
static_ip: 11.0.0.104
|
static_ip: 11.0.0.104
|
||||||
sdr_serial: 42a068dc377ab507
|
sdr_serial: 42a068dc377ab507
|
||||||
note: PortaPack
|
note: PortaPack
|
||||||
@@ -20,12 +23,14 @@ all:
|
|||||||
y: 0.45
|
y: 0.45
|
||||||
node105:
|
node105:
|
||||||
ansible_host: 192.168.1.87
|
ansible_host: 192.168.1.87
|
||||||
|
sdr_id: 3
|
||||||
static_ip: 11.0.0.105
|
static_ip: 11.0.0.105
|
||||||
sdr_serial: a32868dc33894f47
|
sdr_serial: a32868dc33894f47
|
||||||
x: 3.77
|
x: 3.77
|
||||||
y: -0.74
|
y: -0.74
|
||||||
node106:
|
node106:
|
||||||
ansible_host: 192.168.1.42
|
ansible_host: 192.168.1.42
|
||||||
|
sdr_id: 4
|
||||||
static_ip: 11.0.0.106
|
static_ip: 11.0.0.106
|
||||||
sdr_serial: ""
|
sdr_serial: ""
|
||||||
x: 0.00
|
x: 0.00
|
||||||
|
|||||||
@@ -89,6 +89,17 @@
|
|||||||
StrictHostKeyChecking accept-new
|
StrictHostKeyChecking accept-new
|
||||||
tags: [key]
|
tags: [key]
|
||||||
|
|
||||||
|
- name: ~/node.env для обёртки node.sh
|
||||||
|
ansible.builtin.copy:
|
||||||
|
dest: ~/node.env
|
||||||
|
mode: "0644"
|
||||||
|
content: |
|
||||||
|
SDR_ID={{ sdr_id }}
|
||||||
|
X={{ x }}
|
||||||
|
Y={{ y }}
|
||||||
|
SERVER={{ server_ip }}
|
||||||
|
tags: [env]
|
||||||
|
|
||||||
- name: Локальные правки в репо (rsync-разработка)?
|
- name: Локальные правки в репо (rsync-разработка)?
|
||||||
ansible.builtin.command: git status --porcelain
|
ansible.builtin.command: git status --porcelain
|
||||||
args:
|
args:
|
||||||
|
|||||||
Reference in New Issue
Block a user