From 1ed6228728e80a140805fb05389454f4ab61ca1c Mon Sep 17 00:00:00 2001 From: Alexandre Iooss Date: Sun, 26 May 2019 13:03:09 +0200 Subject: [PATCH] Simplify help message on server login --- roles/re2o-service/tasks/main.yml | 6 ------ roles/re2o-service/templates/update-motd.d/05-service.j2 | 2 +- .../re2o-service/templates/update-motd.d/06-service-user.j2 | 3 --- 3 files changed, 1 insertion(+), 10 deletions(-) delete mode 100755 roles/re2o-service/templates/update-motd.d/06-service-user.j2 diff --git a/roles/re2o-service/tasks/main.yml b/roles/re2o-service/tasks/main.yml index 3028ce8..332c371 100644 --- a/roles/re2o-service/tasks/main.yml +++ b/roles/re2o-service/tasks/main.yml @@ -34,9 +34,3 @@ src: update-motd.d/05-service.j2 dest: "/etc/update-motd.d/05-re2o-{{ service_name }}" mode: 0755 - -- name: Indicate in motd service user - template: - src: update-motd.d/06-service-user.j2 - dest: "/etc/update-motd.d/06-service-user" - mode: 0755 diff --git a/roles/re2o-service/templates/update-motd.d/05-service.j2 b/roles/re2o-service/templates/update-motd.d/05-service.j2 index a7b8468..4ed8a74 100755 --- a/roles/re2o-service/templates/update-motd.d/05-service.j2 +++ b/roles/re2o-service/templates/update-motd.d/05-service.j2 @@ -1,3 +1,3 @@ #!/bin/sh # {{ ansible_managed }} -echo "✨ Le service re2o {{ service_name }} est dans {{ service_homedir }}/{{ service_name }}." +echo "✨ Le service re2o {{ service_name }} est dans {{ service_homedir }}/{{ service_name }}" diff --git a/roles/re2o-service/templates/update-motd.d/06-service-user.j2 b/roles/re2o-service/templates/update-motd.d/06-service-user.j2 deleted file mode 100755 index 5def259..0000000 --- a/roles/re2o-service/templates/update-motd.d/06-service-user.j2 +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh -# {{ ansible_managed }} -echo " Pour y accéder, vous devez impersonifier {{ service_user }}."