feat: added profile management

This commit is contained in:
Simon Cornet 2025-10-25 14:25:59 +02:00
commit 726aa54dbb
2 changed files with 15 additions and 1 deletions

View file

@ -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"

10
tasks/profile.yaml Normal file
View file

@ -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"'