From 70145e4d48db7f796676196d7b2d66201d7336b8 Mon Sep 17 00:00:00 2001 From: fumingwei Date: Mon, 17 May 2021 17:34:37 +0800 Subject: [PATCH] =?UTF-8?q?ansible=E8=BF=90=E8=A1=8C=E6=97=B6=E4=BD=BF?= =?UTF-8?q?=E7=94=A8/etc/hosts=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- make/Makefile.9000NPBP01R01 | 3 +++ tsg-9140-scripts/roles/sapp/tasks/main.yml | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/make/Makefile.9000NPBP01R01 b/make/Makefile.9000NPBP01R01 index 08902be0..09af179f 100644 --- a/make/Makefile.9000NPBP01R01 +++ b/make/Makefile.9000NPBP01R01 @@ -47,7 +47,10 @@ sysroot-verfile: sysroot-base sysroot-ansible: sysroot-verfile sysroot-base cp $(CONFDIR)/yum.conf $(TARGET_SYSROOT_DIR)/tmp/ -r cp $(CONFDIR)/resolv.conf $(TARGET_SYSROOT_DIR)/etc/ -r + cp $(TARGET_SYSROOT_DIR)/etc/hosts $(TARGET_SYSROOT_DIR)/tmp/ -r + cp /etc/hosts $(TARGET_SYSROOT_DIR)/etc/ -r $(TOOLSDIR)/ansible-stage-one $(PROFILE_ID) $(PROJECTDIR) $(TARGET_SYSROOT_DIR) /tmp/yum.conf + cp $(TARGET_SYSROOT_DIR)/tmp/hosts $(TARGET_SYSROOT_DIR)/etc/ -r sysroot-cleanup: rm -rf $(TARGET_SYSROOT_DIR)/tmp/* diff --git a/tsg-9140-scripts/roles/sapp/tasks/main.yml b/tsg-9140-scripts/roles/sapp/tasks/main.yml index 713dedc5..5ba91a03 100644 --- a/tsg-9140-scripts/roles/sapp/tasks/main.yml +++ b/tsg-9140-scripts/roles/sapp/tasks/main.yml @@ -52,6 +52,12 @@ dest: /etc/tmpfiles.d/sapp_tmpfile.conf tags: template +- name: Template the gdev.conf + template: + src: "{{ role_path }}/templates/gdev.conf.j2" + dest: /home/mesasoft/sapp_run/etc/gdev.conf + tags: template + - name: "sapp: service adapts runtimes" template: src: "{{ role_path }}/templates/adapt_runtimes.j2"