feat: added profile management
This commit is contained in:
parent
0b4b447ca4
commit
726aa54dbb
2 changed files with 15 additions and 1 deletions
|
|
@ -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
10
tasks/profile.yaml
Normal 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"'
|
||||
Loading…
Add table
Add a link
Reference in a new issue