From 726aa54dbb7942c8d4e74db894d54f40d1aa25a1 Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Sat, 25 Oct 2025 14:25:59 +0200 Subject: [PATCH] feat: added profile management --- tasks/main.yaml | 6 +++++- tasks/profile.yaml | 10 ++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 tasks/profile.yaml diff --git a/tasks/main.yaml b/tasks/main.yaml index 1dafbb0..be3c3f2 100644 --- a/tasks/main.yaml +++ b/tasks/main.yaml @@ -47,7 +47,6 @@ ansible.builtin.import_tasks: "fstab.yaml" tags: "fstab" - # apk - name: "apk" ansible.builtin.import_tasks: "apk/packages.yaml" @@ -84,6 +83,11 @@ when: "ansible_os_family == 'Debian'" tags: "apt-cleanup" +# manage profile +- name: "manage profile" + ansible.builtin.import_tasks: "profile.yaml" + tags: "profile" + # telemetry - name: "telemetry" ansible.builtin.import_tasks: "telemetry.yaml" diff --git a/tasks/profile.yaml b/tasks/profile.yaml new file mode 100644 index 0000000..f5af9a8 --- /dev/null +++ b/tasks/profile.yaml @@ -0,0 +1,10 @@ +--- + +# manage systemwide prompt +- name: "configure systemwide profile" + ansible.builtin.lineinfile: + path: /etc/profile + line: "export PS1='\\[\\033[01;32m\\]\\u@\\h\\[\\033[00m\\]:\\[\\033[01;34m\\]\\w\\[\\033[00m\\]\\$ '" + create: true + mode: "0644" + when: 'ansible_os_family == "Alpine"'