From c80072bb98f95fd728a449f7f0307d5e5406b4e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mehmet=20Emin=20BA=C5=9EO=C4=9ELU?= Date: Fri, 8 Mar 2024 19:09:58 +0300 Subject: [PATCH] chore(ansible): add ccache to path variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mehmet Emin BAŞOĞLU --- ansible/roles/build_tools/README.md | 3 +++ ansible/roles/build_tools/tasks/main.yaml | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/ansible/roles/build_tools/README.md b/ansible/roles/build_tools/README.md index 3db8fa73d2f..e9dfe661893 100644 --- a/ansible/roles/build_tools/README.md +++ b/ansible/roles/build_tools/README.md @@ -16,4 +16,7 @@ sudo apt-get update # Install ccache sudo apt-get install -y ccache + +# Add ccache to PATH +echo 'export PATH="/usr/lib/ccache/:$PATH"' >> ~/.bashrc ``` diff --git a/ansible/roles/build_tools/tasks/main.yaml b/ansible/roles/build_tools/tasks/main.yaml index e83056a6428..c5a66d4973a 100644 --- a/ansible/roles/build_tools/tasks/main.yaml +++ b/ansible/roles/build_tools/tasks/main.yaml @@ -4,3 +4,11 @@ name: ccache state: latest update_cache: true + +- name: Ensure ccache is added to PATH + ansible.builtin.lineinfile: + dest: ~/.bashrc + line: export PATH="/usr/lib/ccache/:$PATH" + state: present + create: true + mode: "0644"