diff --git a/inventory/hosts.yml b/inventory/hosts.yml index 65e2748..787bb9a 100644 --- a/inventory/hosts.yml +++ b/inventory/hosts.yml @@ -4,15 +4,18 @@ all: scanner_branch: feature/scanner-v2 gitea_host: monitor.yss.su gitea_port: 2222 + server_ip: 11.0.0.100 hosts: node102: ansible_host: 192.168.1.45 + sdr_id: 1 static_ip: 11.0.0.102 sdr_serial: a32868dc35944247 x: -0.68 y: -1.28 node104: ansible_host: 192.168.1.50 + sdr_id: 2 static_ip: 11.0.0.104 sdr_serial: 42a068dc377ab507 note: PortaPack @@ -20,12 +23,14 @@ all: y: 0.45 node105: ansible_host: 192.168.1.87 + sdr_id: 3 static_ip: 11.0.0.105 sdr_serial: a32868dc33894f47 x: 3.77 y: -0.74 node106: ansible_host: 192.168.1.42 + sdr_id: 4 static_ip: 11.0.0.106 sdr_serial: "" x: 0.00 diff --git a/playbook.yml b/playbook.yml index 6c3e783..6e18621 100644 --- a/playbook.yml +++ b/playbook.yml @@ -89,6 +89,17 @@ StrictHostKeyChecking accept-new 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-разработка)? ansible.builtin.command: git status --porcelain args: